1{ lib, buildPythonPackage, fetchPypi
2, python, pytest, sortedcontainers }:
3
4buildPythonPackage rec {
5 version = "3.1.0";
6 pname = "intervaltree";
7
8 src = fetchPypi {
9 inherit pname version;
10 sha256 = "902b1b88936918f9b2a19e0e5eb7ccb430ae45cde4f39ea4b36932920d33952d";
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 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}