1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-04 19:45:54 +00:00
nixpkgs/pkgs/development/python-modules/intervaltree/default.nix
Frederik Rietdijk ced21f5e1a pythonPackages: remove name attribute`
The `buildPython*` function computes name from `pname` and `version`.
This change removes `name` attribute from all expressions in
`pkgs/development/python-modules`.

While at it, some other minor changes were made as well, such as
replacing `fetchurl` calls with `fetchPypi`.
2018-06-23 18:14:26 +02:00

31 lines
732 B
Nix

{ stdenv, buildPythonPackage, fetchPypi
, python, pytest, sortedcontainers }:
buildPythonPackage rec {
version = "2.1.0";
pname = "intervaltree";
src = fetchPypi {
inherit pname version;
sha256 = "02w191m9zxkcjqr1kv2slxvhymwhj3jnsyy3a28b837pi15q19dc";
};
buildInputs = [ pytest ];
propagatedBuildInputs = [ sortedcontainers ];
checkPhase = ''
runHook preCheck
rm build -rf
${python.interpreter} nix_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 ];
};
}