pythonPackages.pygal: refactor move to python-modules
This commit is contained in:
parent
e900eb2a61
commit
c13f598fc2
36
pkgs/development/python-modules/pygal/default.nix
Normal file
36
pkgs/development/python-modules/pygal/default.nix
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
{ stdenv
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, isPyPy
|
||||||
|
, flask
|
||||||
|
, pyquery
|
||||||
|
, pytest
|
||||||
|
, cairosvg
|
||||||
|
, tinycss
|
||||||
|
, cssselect
|
||||||
|
, lxml
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "pygal";
|
||||||
|
version = "2.3.1";
|
||||||
|
|
||||||
|
doCheck = !isPyPy; # one check fails with pypy
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "7ba5a191233d0c2d8bf4b4d26b06e42bd77483a59ba7d3e5b884d81d1a870667";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ flask pyquery pytest ];
|
||||||
|
propagatedBuildInputs = [ cairosvg tinycss cssselect ]
|
||||||
|
++ stdenv.lib.optionals (!isPyPy) [ lxml ];
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "Sexy and simple python charting";
|
||||||
|
homepage = http://www.pygal.org;
|
||||||
|
license = licenses.lgpl3;
|
||||||
|
maintainers = with maintainers; [ sjourdois ];
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
@ -2873,28 +2873,7 @@ in {
|
|||||||
|
|
||||||
pint = callPackage ../development/python-modules/pint { };
|
pint = callPackage ../development/python-modules/pint { };
|
||||||
|
|
||||||
pygal = buildPythonPackage rec {
|
pygal = callPackage ../development/python-modules/pygal { };
|
||||||
pname = "pygal";
|
|
||||||
version = "2.3.1";
|
|
||||||
name = "${pname}-${version}";
|
|
||||||
|
|
||||||
doCheck = !isPyPy; # one check fails with pypy
|
|
||||||
|
|
||||||
src = fetchPypi {
|
|
||||||
inherit pname version;
|
|
||||||
sha256 = "7ba5a191233d0c2d8bf4b4d26b06e42bd77483a59ba7d3e5b884d81d1a870667";
|
|
||||||
};
|
|
||||||
|
|
||||||
buildInputs = with self; [ flask pyquery pytest ];
|
|
||||||
propagatedBuildInputs = with self; [ cairosvg tinycss cssselect ] ++ optionals (!isPyPy) [ lxml ];
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "Sexy and simple python charting";
|
|
||||||
homepage = http://www.pygal.org;
|
|
||||||
license = licenses.lgpl3;
|
|
||||||
maintainers = with maintainers; [ sjourdois ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
pytaglib = callPackage ../development/python-modules/pytaglib { };
|
pytaglib = callPackage ../development/python-modules/pytaglib { };
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user