3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/cycler/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

36 lines
723 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, coverage
, nose
, six
, python
}:
buildPythonPackage rec {
pname = "cycler";
version = "0.10.0";
src = fetchPypi {
inherit pname version;
sha256 = "cd7b2d1018258d7247a71425e9f26463dfb444d411c39569972f4ce586b0c9d8";
};
checkInputs = [ coverage nose ];
propagatedBuildInputs = [ six ];
checkPhase = ''
${python.interpreter} run_tests.py
'';
# Tests were not included in release.
# https://github.com/matplotlib/cycler/issues/31
doCheck = false;
meta = {
description = "Composable style cycles";
homepage = https://github.com/matplotlib/cycler;
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ fridh ];
};
}