diff options
author | Fabian Affolter <fabian@affolter-engineering.ch> | 2024-01-22 17:37:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-22 17:37:30 +0100 |
commit | a249e81c9ca2b8c1cef3737fd29fc35c83998c80 (patch) | |
tree | 05b68db6c6c0caa172cbe323e9de63557407b579 | |
parent | 2a5f24096de60d10ba01303fe1ebb3207abb38e7 (diff) | |
parent | 7908e1f6de50652b3831d083b37c0e560640d9be (diff) |
Merge pull request #282821 from fabaff/monai-deploy-fix
python311Packages.monai-deploy: refactor
-rw-r--r-- | pkgs/development/python-modules/monai-deploy/default.nix | 29 |
1 files changed, 20 insertions, 9 deletions
diff --git a/pkgs/development/python-modules/monai-deploy/default.nix b/pkgs/development/python-modules/monai-deploy/default.nix index e3a4f2418d161..74b88ca8dc735 100644 --- a/pkgs/development/python-modules/monai-deploy/default.nix +++ b/pkgs/development/python-modules/monai-deploy/default.nix @@ -1,13 +1,14 @@ { lib , buildPythonPackage +, colorama , fetchFromGitHub -, pythonOlder -, pytestCheckHook -, pytest-lazy-fixture -, numpy , networkx +, numpy , pydicom -, colorama +, pytest-lazy-fixture +, pytestCheckHook +, pythonOlder +, setuptools , typeguard , versioneer }: @@ -29,10 +30,14 @@ buildPythonPackage rec { postPatch = '' # Asked in https://github.com/Project-MONAI/monai-deploy-app-sdk/issues/450 # if this patch can be incorporated upstream. - substituteInPlace pyproject.toml --replace 'versioneer-518' 'versioneer' + substituteInPlace pyproject.toml \ + --replace 'versioneer-518' 'versioneer' ''; - nativeBuildInputs = [ versioneer ]; + nativeBuildInputs = [ + versioneer + setuptools + ]; propagatedBuildInputs = [ numpy @@ -41,11 +46,16 @@ buildPythonPackage rec { typeguard ]; - nativeCheckInputs = [ pytestCheckHook pytest-lazy-fixture ]; + nativeCheckInputs = [ + pytestCheckHook + pytest-lazy-fixture + ]; + disabledTests = [ # requires Docker daemon: "test_packager" ]; + pythonImportsCheck = [ "monai.deploy" "monai.deploy.core" @@ -57,7 +67,8 @@ buildPythonPackage rec { meta = with lib; { description = "Framework and tools to design, develop and verify AI applications in healthcare imaging"; homepage = "https://monai.io/deploy.html"; + changelog = "https://github.com/Project-MONAI/monai-deploy-app-sdk/blob/main/docs/source/release_notes/v${version}.md"; license = licenses.asl20; - maintainers = [ maintainers.bcdarwin ]; + maintainers = with maintainers; [ bcdarwin ]; }; } |