2017-07-15 09:19:34 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi
|
|
|
|
, python, pytest, sortedcontainers }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2018-12-30 19:09:50 +00:00
|
|
|
version = "3.0.2";
|
2017-07-15 09:19:34 +00:00
|
|
|
pname = "intervaltree";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-12-30 19:09:50 +00:00
|
|
|
sha256 = "0wz234g6irlm4hivs2qzmnywk0ss06ckagwh15nflkyb3p462kyb";
|
2017-07-15 09:19:34 +00: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 09:19:34 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|