2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi
|
2017-07-15 10:19:34 +01:00
|
|
|
, python, pytest, sortedcontainers }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2020-08-16 18:31:04 +01:00
|
|
|
version = "3.1.0";
|
2017-07-15 10:19:34 +01:00
|
|
|
pname = "intervaltree";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-08-16 18:31:04 +01:00
|
|
|
sha256 = "902b1b88936918f9b2a19e0e5eb7ccb430ae45cde4f39ea4b36932920d33952d";
|
2017-07-15 10:19:34 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ pytest ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ sortedcontainers ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
runHook preCheck
|
|
|
|
rm build -rf
|
2018-01-20 12:31:14 +00:00
|
|
|
${python.interpreter} nix_run_setup test
|
2017-07-15 10:19:34 +01:00
|
|
|
runHook postCheck
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-07-15 10:19:34 +01:00
|
|
|
description = "Editable interval tree data structure for Python 2 and 3";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/chaimleib/intervaltree";
|
2017-07-15 10:19:34 +01:00
|
|
|
license = [ licenses.asl20 ];
|
|
|
|
maintainers = [ maintainers.bennofs ];
|
|
|
|
};
|
|
|
|
}
|