3
0
Fork 0
forked from mirrors/nixpkgs

python3Packages.cairosvg: fix cross-compilation, patch out unneeded tests

This commit is contained in:
legendofmiracles 2021-10-20 19:04:28 -06:00 committed by Jonathan Ringer
parent 4ebd9ffc5b
commit 55e1a4074c

View file

@ -8,9 +8,6 @@
, pillow
, tinycss2
, pytestCheckHook
, pytest-runner
, pytest-flake8
, pytest-isort
}:
buildPythonPackage rec {
@ -23,11 +20,21 @@ buildPythonPackage rec {
sha256 = "sha256-sLmSnPXboAUXjXRqgDb88AJVUPSYylTbYYczIjhHg7w=";
};
nativeBuildInputs = [ pytest-runner ];
propagatedBuildInputs = [ cairocffi cssselect2 defusedxml pillow tinycss2 ];
checkInputs = [ pytestCheckHook pytest-flake8 pytest-isort ];
propagatedNativeBuildInputs = [ cairocffi ];
checkInputs = [ pytestCheckHook ];
postPatch = ''
substituteInPlace setup.cfg \
--replace "pytest-runner" "" \
--replace "pytest-flake8" "" \
--replace "pytest-isort" "" \
--replace "pytest-cov" "" \
--replace "--flake8" "" \
--replace "--isort" ""
'';
pytestFlagsArray = [
"cairosvg/test_api.py"