python.pkgs.intervaltree: move to separate expression
This commit is contained in:
committed by
Jörg Thalheim
parent
cca503b389
commit
f0ac823696
33
pkgs/development/python-modules/intervaltree/default.nix
Normal file
33
pkgs/development/python-modules/intervaltree/default.nix
Normal file
@@ -0,0 +1,33 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi
|
||||
, python, pytest, sortedcontainers }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "2.1.0";
|
||||
pname = "intervaltree";
|
||||
name = "${pname}-${version}";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "02w191m9zxkcjqr1kv2slxvhymwhj3jnsyy3a28b837pi15q19dc";
|
||||
};
|
||||
|
||||
buildInputs = [ pytest ];
|
||||
|
||||
propagatedBuildInputs = [ sortedcontainers ];
|
||||
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
# pytest will try to run tests for nix_run_setup.py / files in build/lib which fails
|
||||
mv nix_run_setup.py run_setup
|
||||
rm build -rf
|
||||
${python.interpreter} run_setup test
|
||||
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 ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user