1{ stdenv, buildPythonPackage, fetchPypi
2, python, pytest, sortedcontainers }:
3
4buildPythonPackage rec {
5 version = "2.1.0";
6 pname = "intervaltree";
7
8 src = fetchPypi {
9 inherit pname version;
10 sha256 = "02w191m9zxkcjqr1kv2slxvhymwhj3jnsyy3a28b837pi15q19dc";
11 };
12
13 buildInputs = [ pytest ];
14
15 propagatedBuildInputs = [ sortedcontainers ];
16
17 checkPhase = ''
18 runHook preCheck
19 rm build -rf
20 ${python.interpreter} nix_run_setup test
21 runHook postCheck
22 '';
23
24 meta = with stdenv.lib; {
25 description = "Editable interval tree data structure for Python 2 and 3";
26 homepage = https://github.com/chaimleib/intervaltree;
27 license = [ licenses.asl20 ];
28 maintainers = [ maintainers.bennofs ];
29 };
30}