summary refs log tree commit diff
path: root/pkgs/development/python-modules/regional/default.nix
blob: 5f2aee1b42afe13173d42b70abc3f2fea9422785 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{ lib
, buildPythonPackage
, fetchFromGitHub
, numpy
, scipy
, matplotlib
, pytest
}:

buildPythonPackage rec {
  pname = "regional";
  version = "1.1.2";

  src = fetchFromGitHub {
    owner = "freeman-lab";
    repo = pname;
    rev = "e3a29c58982e5cd3d5700131ac96e5e0b84fb981"; # no tags in repo
    sha256 = "03qgm35q9sa5cy0kkw4bj60zfylw0isfzb96nlhdfrsigzs2zkxv";
  };

  propagatedBuildInputs = [
    numpy
    scipy
    matplotlib
  ];

  checkInputs = [
    pytest
  ];

  checkPhase = ''
    pytest
  '';

  meta = with lib; {
    description = "Simple manipualtion and display of spatial regions";
    homepage = https://github.com/freeman-lab/regional;
    license = licenses.mit;
    maintainers = [ maintainers.costrouc ];
  };
}