1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pythonOlder,
6 numpy,
7 nptyping,
8 typing-extensions,
9}:
10
11buildPythonPackage rec {
12 pname = "pynrrd";
13 version = "1.0.0";
14 format = "setuptools";
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchFromGitHub {
19 owner = "mhe";
20 repo = pname;
21 rev = "refs/tags/v${version}";
22 hash = "sha256-R/bUItF2BaKTFdMNBHFJKq0jSX6z49e8CGXENUn07SU=";
23 };
24
25 propagatedBuildInputs = [
26 numpy
27 nptyping
28 typing-extensions
29 ];
30
31 pythonImportsCheck = [ "nrrd" ];
32
33 meta = with lib; {
34 homepage = "https://github.com/mhe/pynrrd";
35 description = "Simple pure-Python reader for NRRD files";
36 license = licenses.mit;
37 maintainers = with maintainers; [ bcdarwin ];
38 };
39}