1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pythonOlder,
6 setuptools,
7 numpy,
8 typing-extensions,
9 pytestCheckHook,
10}:
11
12buildPythonPackage rec {
13 pname = "pynrrd";
14 version = "1.1.3";
15 pyproject = true;
16
17 disabled = pythonOlder "3.7";
18
19 src = fetchFromGitHub {
20 owner = "mhe";
21 repo = "pynrrd";
22 tag = "v${version}";
23 hash = "sha256-qu3s3XswJCUchqYfYMuqIzI4sfeXrttvXSEW9/GSENA=";
24 };
25
26 build-system = [ setuptools ];
27
28 dependencies = [
29 numpy
30 typing-extensions
31 ];
32
33 nativeCheckInputs = [ pytestCheckHook ];
34
35 pythonImportsCheck = [ "nrrd" ];
36
37 meta = {
38 homepage = "https://github.com/mhe/pynrrd";
39 description = "Simple pure-Python reader for NRRD files";
40 changelog = "https://github.com/mhe/pynrrd/releases/tag/v${version}";
41 license = lib.licenses.mit;
42 maintainers = with lib.maintainers; [ bcdarwin ];
43 };
44}