python.pkgs.cycler: move expression

This commit is contained in:
Frederik Rietdijk 2017-07-29 11:39:56 +02:00
parent 369fde13a3
commit b714a38bba
2 changed files with 38 additions and 27 deletions

View file

@ -0,0 +1,37 @@
{ lib
, buildPythonPackage
, fetchPypi
, coverage
, nose
, six
, python
}:
buildPythonPackage rec {
pname = "cycler";
name = "${pname}-${version}";
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 = http://github.com/matplotlib/cycler;
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ fridh ];
};
}

View file

@ -1865,33 +1865,7 @@ in {
}; };
}; };
cycler = buildPythonPackage rec { cycler = callPackage ../development/python-modules/cycler { };
name = "cycler-${version}";
version = "0.10.0";
src = pkgs.fetchurl {
url = "mirror://pypi/C/Cycler/${name}.tar.gz";
sha256 = "cd7b2d1018258d7247a71425e9f26463dfb444d411c39569972f4ce586b0c9d8";
};
buildInputs = with self; [ coverage nose ];
propagatedBuildInputs = with self; [ 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 = http://github.com/matplotlib/cycler;
license = licenses.bsd3;
maintainers = with maintainers; [ fridh ];
};
};
datadog = buildPythonPackage rec { datadog = buildPythonPackage rec {
name = "${pname}-${version}"; name = "${pname}-${version}";