python3Packages.svglib: init at 1.0.0
This commit is contained in:
parent
41edd65945
commit
1b9acad10b
2 changed files with 50 additions and 0 deletions
48
pkgs/development/python-modules/svglib/default.nix
Normal file
48
pkgs/development/python-modules/svglib/default.nix
Normal file
|
@ -0,0 +1,48 @@
|
||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, isPy3k
|
||||||
|
, cssselect2
|
||||||
|
, lxml
|
||||||
|
, pillow
|
||||||
|
, pytest
|
||||||
|
, reportlab
|
||||||
|
, tinycss2
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "svglib";
|
||||||
|
version = "1.0.0";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "b17d4a6352f6c25ca3718d2b66a2f1ecfcdf558b1f6646c37f5c191b655979f1";
|
||||||
|
};
|
||||||
|
|
||||||
|
disabled = !isPy3k;
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
cssselect2
|
||||||
|
lxml
|
||||||
|
pillow
|
||||||
|
reportlab
|
||||||
|
tinycss2
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
pytest
|
||||||
|
];
|
||||||
|
|
||||||
|
# Ignore tests that require network access (TestWikipediaFlags and TestW3CSVG), and tests that
|
||||||
|
# require files missing in the 1.0.0 PyPI release (TestOtherFiles).
|
||||||
|
checkPhase = ''
|
||||||
|
py.test svglib tests -k 'not TestWikipediaFlags and not TestW3CSVG and not TestOtherFiles'
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
homepage = "https://github.com/deeplook/svglib";
|
||||||
|
description = "A pure-Python library for reading and converting SVG";
|
||||||
|
license = licenses.lgpl3;
|
||||||
|
maintainers = with maintainers; [ trepetti ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -6550,6 +6550,8 @@ in {
|
||||||
|
|
||||||
stevedore = callPackage ../development/python-modules/stevedore {};
|
stevedore = callPackage ../development/python-modules/stevedore {};
|
||||||
|
|
||||||
|
svglib = callPackage ../development/python-modules/svglib { };
|
||||||
|
|
||||||
text-unidecode = callPackage ../development/python-modules/text-unidecode { };
|
text-unidecode = callPackage ../development/python-modules/text-unidecode { };
|
||||||
|
|
||||||
Theano = callPackage ../development/python-modules/Theano rec {
|
Theano = callPackage ../development/python-modules/Theano rec {
|
||||||
|
|
Loading…
Reference in a new issue