blob: 9f06d7b44dd07afde6bc7f6a5b3b87e9a5a0660c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
fetchpatch,
pythonOlder,
pytestCheckHook,
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;
};
patches = [
# https://github.com/razorx89/pydicom-seg/pull/54
(fetchpatch {
name = "replace-poetry-with-poetry-core.patch";
url = "https://github.com/razorx89/pydicom-seg/commit/ac91eaefe3b0aecfe745869972c08de5350d2b61.patch";
hash = "sha256-xBOVjWZPjyQ8gSj6JLe9B531e11TI3FUFFtL+IelZOM=";
})
];
pythonRelaxDeps = [ "jsonschema" ];
nativeBuildInputs = [
poetry-core
];
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 ];
};
}
|