mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-09 14:33:22 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
52 lines
1.1 KiB
Nix
52 lines
1.1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, isPy3k
|
|
, cairocffi
|
|
, cssselect2
|
|
, defusedxml
|
|
, pillow
|
|
, tinycss2
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "CairoSVG";
|
|
version = "2.6.0";
|
|
disabled = !isPy3k;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-1eyT6QEBs7boKqJF0FRu6bAWz9oLY0RnUVmDDYU9XQQ=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ cairocffi cssselect2 defusedxml pillow tinycss2 ];
|
|
|
|
propagatedNativeBuildInputs = [ cairocffi ];
|
|
|
|
nativeCheckInputs = [ 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"
|
|
];
|
|
|
|
pythonImportsCheck = [ "cairosvg" ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://cairosvg.org";
|
|
license = licenses.lgpl3Plus;
|
|
description = "SVG converter based on Cairo";
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
|
};
|
|
}
|