Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / regional / default.nix
blob26f0755b3fe11f6f5535bf714ca2638d5094826f
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , numpy
5 , scipy
6 , matplotlib
7 , pytest
8 }:
10 buildPythonPackage rec {
11   pname = "regional";
12   version = "1.1.2";
14   src = fetchFromGitHub {
15     owner = "freeman-lab";
16     repo = pname;
17     rev = "e3a29c58982e5cd3d5700131ac96e5e0b84fb981"; # no tags in repo
18     sha256 = "03qgm35q9sa5cy0kkw4bj60zfylw0isfzb96nlhdfrsigzs2zkxv";
19   };
21   propagatedBuildInputs = [
22     numpy
23     scipy
24     matplotlib
25   ];
27   checkInputs = [
28     pytest
29   ];
31   checkPhase = ''
32     pytest
33   '';
35   meta = with lib; {
36     description = "Simple manipualtion and display of spatial regions";
37     homepage = "https://github.com/freeman-lab/regional";
38     license = licenses.mit;
39     maintainers = [ maintainers.costrouc ];
40   };