1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 setuptools,
6 pytestCheckHook,
7 sortedcontainers,
8}:
9
10buildPythonPackage rec {
11 version = "3.1.0";
12 pname = "intervaltree";
13 pyproject = true;
14
15 src = fetchPypi {
16 inherit pname version;
17 sha256 = "902b1b88936918f9b2a19e0e5eb7ccb430ae45cde4f39ea4b36932920d33952d";
18 };
19
20 build-system = [ setuptools ];
21
22 dependencies = [ sortedcontainers ];
23
24 nativeCheckInputs = [ pytestCheckHook ];
25
26 preCheck = ''
27 rm -rf build
28 '';
29
30 meta = with lib; {
31 description = "Editable interval tree data structure for Python 2 and 3";
32 homepage = "https://github.com/chaimleib/intervaltree";
33 license = [ licenses.asl20 ];
34 maintainers = [ maintainers.bennofs ];
35 };
36}