python310Packages.svglib: use pytestCheckHook
This commit is contained in:
committed by
Robert Schütz
parent
e5860e40fd
commit
0bb1bedab1
@@ -1,11 +1,11 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, pythonOlder
|
||||
, fetchPypi
|
||||
, isPy3k
|
||||
, cssselect2
|
||||
, lxml
|
||||
, pillow
|
||||
, pytest
|
||||
, pytestCheckHook
|
||||
, reportlab
|
||||
, tinycss2
|
||||
}:
|
||||
@@ -14,13 +14,15 @@ buildPythonPackage rec {
|
||||
pname = "svglib";
|
||||
version = "1.3.0";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-o4mYuV0buZVk3J3/rxXk6UU3YfJ5DS3UFHpK1fusEHg=";
|
||||
};
|
||||
|
||||
disabled = !isPy3k;
|
||||
|
||||
propagatedBuildInputs = [
|
||||
cssselect2
|
||||
lxml
|
||||
@@ -30,14 +32,16 @@ buildPythonPackage rec {
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytest
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
# 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'
|
||||
'';
|
||||
pytestFlagsArray = [
|
||||
"-k 'not TestWikipediaFlags and not TestW3CSVG and not TestOtherFiles'"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "svglib.svglib" ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/deeplook/svglib";
|
||||
|
||||
Reference in New Issue
Block a user