1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 numpy,
6 scipy,
7 matplotlib,
8 pytestCheckHook,
9 pythonOlder,
10}:
11
12buildPythonPackage {
13 pname = "regional";
14 version = "1.1.2";
15 format = "setuptools";
16
17 disabled = pythonOlder "3.7";
18
19 src = fetchFromGitHub {
20 owner = "freeman-lab";
21 repo = "regional";
22 rev = "e3a29c58982e5cd3d5700131ac96e5e0b84fb981"; # no tags in repo
23 hash = "sha256-u88v9H9RZ9cgtSat73QEnHr3gZGL8DmBZ0XphMuoDw8=";
24 };
25
26 propagatedBuildInputs = [
27 matplotlib
28 numpy
29 scipy
30 ];
31
32 nativeCheckInputs = [ pytestCheckHook ];
33
34 pythonImportsCheck = [ "regional" ];
35
36 disabledTests = [
37 "test_dilate"
38 "test_outline"
39 "test_mask"
40 ];
41
42 meta = with lib; {
43 description = "Simple manipualtion and display of spatial regions";
44 homepage = "https://github.com/freeman-lab/regional";
45 license = licenses.mit;
46 maintainers = [ ];
47 };
48}