summary refs log tree commit diff
path: root/pkgs/development/python-modules/intervaltree/default.nix
blob: 47cb354a7fe902b73f4fd1d119bc472b75e3698a (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
{ stdenv, buildPythonPackage, fetchPypi
, python, pytest, sortedcontainers }:

buildPythonPackage rec {
  version = "2.1.0";
  pname = "intervaltree";

  src = fetchPypi {
    inherit pname version;
    sha256 = "02w191m9zxkcjqr1kv2slxvhymwhj3jnsyy3a28b837pi15q19dc";
  };

  buildInputs = [ pytest ];

  propagatedBuildInputs = [ sortedcontainers ];

  checkPhase = ''
    runHook preCheck
    rm build -rf
    ${python.interpreter} nix_run_setup test
    runHook postCheck
  '';

  meta = with stdenv.lib; {
    description = "Editable interval tree data structure for Python 2 and 3";
    homepage =  https://github.com/chaimleib/intervaltree;
    license = [ licenses.asl20 ];
    maintainers =  [ maintainers.bennofs ];
  };
}