Skip to content

Commit

Permalink
python312Packages.mmengine: 0.10.5 -> 0.10.6 (NixOS#373421)
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 authored Jan 13, 2025
2 parents 11ae936 + 0b60aea commit d9f2cb4
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 31 deletions.
28 changes: 18 additions & 10 deletions pkgs/development/python-modules/mmcv/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
lib,
stdenv,
buildPythonPackage,
fetchFromGitHub,

Expand Down Expand Up @@ -120,16 +121,23 @@ buildPythonPackage rec {
# test_cnn test_ops really requires gpus to be useful.
# some of the tests take exceedingly long time.
# the rest of the tests are disabled due to sandbox env.
disabledTests = [
"test_cnn"
"test_ops"
"test_fileclient"
"test_load_model_zoo"
"test_processing"
"test_checkpoint"
"test_hub"
"test_reader"
];
disabledTests =
[
"test_cnn"
"test_ops"
"test_fileclient"
"test_load_model_zoo"
"test_processing"
"test_checkpoint"
"test_hub"
"test_reader"
]
++ lib.optionals (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64) [
# flaky numerical tests (AssertionError)
"test_ycbcr2rgb"
"test_ycbcr2bgr"
"test_tensor2imgs"
];

meta = {
description = "Foundational Library for Computer Vision Research";
Expand Down
23 changes: 2 additions & 21 deletions pkgs/development/python-modules/mmengine/default.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
{
lib,
stdenv,
buildPythonPackage,
fetchFromGitHub,
fetchpatch2,

# build-system
setuptools,
Expand Down Expand Up @@ -32,31 +30,16 @@

buildPythonPackage rec {
pname = "mmengine";
version = "0.10.5";
version = "0.10.6";
pyproject = true;

src = fetchFromGitHub {
owner = "open-mmlab";
repo = "mmengine";
tag = "v${version}";
hash = "sha256-bZ6O4UOYUCwq11YmgRWepOIngYxYD/fNfM/VmcyUv9k=";
hash = "sha256-J9p+JCtNoBlBvvv4p57/DHUIifYs/jdo+pK+paD+iXI=";
};

patches = [
(fetchpatch2 {
name = "mmengine-torch-2.5-compat.patch";
url = "https://github.com/open-mmlab/mmengine/commit/4c22f78cdea2981a2b48a167e9feffe4721f8901.patch";
hash = "sha256-k+IFLeqTEVUGGiqmZg56LK64H/UTvpGN20GJT59wf4A=";
})
(fetchpatch2 {
# Bug reported upstream in https://github.com/open-mmlab/mmengine/issues/1575
# PR: https://github.com/open-mmlab/mmengine/pull/1589
name = "adapt-to-pytest-breaking-change";
url = "https://patch-diff.githubusercontent.com/raw/open-mmlab/mmengine/pull/1589.patch";
hash = "sha256-lyKf1GCLOPMpDttJ4s9hbATIGCVkiQhtyLfH9WzMWrw=";
})
];

build-system = [ setuptools ];

dependencies = [
Expand Down Expand Up @@ -131,7 +114,5 @@ buildPythonPackage rec {
changelog = "https://github.com/open-mmlab/mmengine/releases/tag/v${version}";
license = with lib.licenses; [ asl20 ];
maintainers = with lib.maintainers; [ rxiao ];
broken =
stdenv.hostPlatform.isDarwin || (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64);
};
}

0 comments on commit d9f2cb4

Please sign in to comment.