Merge pull request #282821 from fabaff/monai-deploy-fix

python311Packages.monai-deploy: refactor
This commit is contained in:
Fabian Affolter 2024-01-22 17:37:30 +01:00 committed by GitHub
commit a249e81c9c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,13 +1,14 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, pytestCheckHook
, pytest-lazy-fixture
, numpy
, networkx
, pydicom
, colorama
, fetchFromGitHub
, networkx
, numpy
, pydicom
, 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 ];
};
}