nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 cryptography,
7 nibabel,
8 numpy,
9 pydicom,
10 simpleitk,
11}:
12
13buildPythonPackage rec {
14 pname = "pymedio";
15 version = "0.2.14";
16 format = "setuptools";
17
18 src = fetchFromGitHub {
19 owner = "jcreinhold";
20 repo = "pymedio";
21 tag = "v${version}";
22 hash = "sha256-x3CHoWASDrUoCXfj73NF+0Y/3Mb31dK2Lh+o4OD9ryk=";
23 };
24
25 propagatedBuildInputs = [ numpy ];
26
27 nativeCheckInputs = [
28 pytestCheckHook
29 cryptography
30 nibabel
31 pydicom
32 simpleitk
33 ];
34
35 pythonImportsCheck = [ "pymedio" ];
36
37 meta = {
38 description = "Read medical image files into Numpy arrays";
39 homepage = "https://github.com/jcreinhold/pymedio";
40 changelog = "https://github.com/jcreinhold/pymedio/blob/v${version}/HISTORY.rst";
41 license = lib.licenses.mit;
42 maintainers = with lib.maintainers; [ bcdarwin ];
43 };
44}