diff options
author | Fabian Affolter <fabian@affolter-engineering.ch> | 2023-08-08 22:17:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-08 22:17:39 +0200 |
commit | 0510ad716781d946fbc650066f39fc657706a91a (patch) | |
tree | 180b13cb22a104dd0c88b541552d8b666cef2cbf | |
parent | 7339f574bc24f603fb44bce2491119291a73c1f8 (diff) | |
parent | 08aae617fda1a607e3535ec7b36650b9a77fb245 (diff) |
Merge pull request #247830 from fabaff/mmcv-fix
python311Packages.mmengine: 0.7.4 -> 0.8.4
-rw-r--r-- | pkgs/development/python-modules/mmengine/default.nix | 71 |
1 files changed, 41 insertions, 30 deletions
diff --git a/pkgs/development/python-modules/mmengine/default.nix b/pkgs/development/python-modules/mmengine/default.nix index 8d9c41bd7a71a..ff071c0669541 100644 --- a/pkgs/development/python-modules/mmengine/default.nix +++ b/pkgs/development/python-modules/mmengine/default.nix @@ -1,26 +1,26 @@ { lib +, addict , buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, torch -, opencv4 -, yapf , coverage -, mlflow +, fetchFromGitHub , lmdb , matplotlib +, mlflow , numpy +, opencv4 +, parameterized +, pytestCheckHook +, pythonOlder , pyyaml , rich , termcolor -, addict -, parameterized +, torch +, yapf }: buildPythonPackage rec { pname = "mmengine"; - version = "0.7.4"; + version = "0.8.4"; format = "setuptools"; disabled = pythonOlder "3.7"; @@ -29,35 +29,27 @@ buildPythonPackage rec { owner = "open-mmlab"; repo = pname; rev = "refs/tags/v${version}"; - hash = "sha256-eridbYHagwAyXX3/JggfvC0vuy6nBAIISRy1ARrQ7Kk="; + hash = "sha256-kJhcw6Hpzx3s5WHeLTF8pydbAKXwfVgvxo7SsSN5gls="; }; - # tests are disabled due to sandbox env. - disabledTests = [ - "test_fileclient" - "test_http_backend" - "test_misc" - ]; - - nativeBuildInputs = [ pytestCheckHook ]; - - nativeCheckInputs = [ - coverage - lmdb - mlflow - torch - parameterized - ]; - propagatedBuildInputs = [ addict matplotlib numpy + opencv4 pyyaml rich termcolor yapf - opencv4 + ]; + + nativeCheckInputs = [ + coverage + lmdb + mlflow + torch + parameterized + pytestCheckHook ]; preCheck = '' @@ -68,8 +60,27 @@ buildPythonPackage rec { "mmengine" ]; + disabledTestPaths = [ + # AttributeError + "tests/test_fileio/test_backends/test_petrel_backend.py" + ]; + + disabledTests = [ + # Tests are disabled due to sandbox + "test_fileclient" + "test_http_backend" + "test_misc" + # RuntimeError + "test_dump" + "test_deepcopy" + "test_copy" + "test_lazy_import" + # AssertionError + "test_lazy_module" + ]; + meta = with lib; { - description = "a foundational library for training deep learning models based on PyTorch"; + description = "Library for training deep learning models based on PyTorch"; homepage = "https://github.com/open-mmlab/mmengine"; changelog = "https://github.com/open-mmlab/mmengine/releases/tag/v${version}"; license = with licenses; [ asl20 ]; |