python310Packages.pydicom-seg: init at 0.4.1

This commit is contained in:
Ben Darwin 2023-04-06 21:47:03 -04:00
parent 4487c14ec3
commit 1b4e545252
2 changed files with 67 additions and 0 deletions

View file

@ -0,0 +1,65 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, pytestCheckHook
, pythonRelaxDepsHook
, poetry-core
, jsonschema
, numpy
, pydicom
, simpleitk
}:
buildPythonPackage rec {
pname = "pydicom-seg";
version = "0.4.1";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "razorx89";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-2Y3fZHKfZqdp5EU8HfVsmJ5JFfVGZuAR7+Kj7qaTiPM=";
fetchSubmodules = true;
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace "poetry.masonry.api" "poetry.core.masonry.api"
'';
pythonRelaxDeps = [
"jsonschema"
];
nativeBuildInputs = [
poetry-core
pythonRelaxDepsHook
];
propagatedBuildInputs = [
jsonschema
numpy
pydicom
simpleitk
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"pydicom_seg"
];
meta = with lib; {
description = "Medical segmentation file reading and writing";
homepage = "https://github.com/razorx89/pydicom-seg";
changelog = "https://github.com/razorx89/pydicom-seg/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ bcdarwin ];
};
}

View file

@ -8287,6 +8287,8 @@ self: super: with self; {
pydicom = callPackage ../development/python-modules/pydicom { };
pydicom-seg = callPackage ../development/python-modules/pydicom-seg { };
pydigiham = callPackage ../development/python-modules/pydigiham { };
pydispatcher = callPackage ../development/python-modules/pydispatcher { };