15 buildPythonPackage rec {
16 pname = "pydicom-seg";
20 disabled = pythonOlder "3.7";
22 src = fetchFromGitHub {
25 rev = "refs/tags/v${version}";
26 hash = "sha256-2Y3fZHKfZqdp5EU8HfVsmJ5JFfVGZuAR7+Kj7qaTiPM=";
27 fetchSubmodules = true;
31 # https://github.com/razorx89/pydicom-seg/pull/54
33 name = "replace-poetry-with-poetry-core.patch";
34 url = "https://github.com/razorx89/pydicom-seg/commit/ac91eaefe3b0aecfe745869972c08de5350d2b61.patch";
35 hash = "sha256-xBOVjWZPjyQ8gSj6JLe9B531e11TI3FUFFtL+IelZOM=";
39 pythonRelaxDeps = [ "jsonschema" ];
41 build-system = [ poetry-core ];
50 nativeCheckInputs = [ pytest7CheckHook ];
52 pythonImportsCheck = [ "pydicom_seg" ];
55 description = "Medical segmentation file reading and writing";
56 homepage = "https://github.com/razorx89/pydicom-seg";
57 changelog = "https://github.com/razorx89/pydicom-seg/releases/tag/v${version}";
58 license = licenses.mit;
59 maintainers = with maintainers; [ bcdarwin ];