depot/third_party/nixpkgs/pkgs/development/python-modules/svgelements/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

60 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
fetchpatch,
setuptools,
wheel,
anyio,
numpy,
pillow,
pytest-forked,
pytest-xdist,
pytestCheckHook,
scipy,
}:
buildPythonPackage rec {
pname = "svgelements";
version = "1.9.6";
pyproject = true;
src = fetchFromGitHub {
owner = "meerk40t";
repo = "svgelements";
rev = "refs/tags/${version}";
hash = "sha256-nx2sGXeeh8S17TfRDFifQbdSxc4YGsDNnrPSSbxv7S4=";
};
patches = [
(fetchpatch {
name = "fix-assert-tests";
url = "https://github.com/meerk40t/svgelements/commit/23da98941a94cf1afed39c10750222ccfee73c9f.patch";
hash = "sha256-/53w4eWlaSNEQxuoAxPrN2HciZ3Az2A2SKcIAlNgKAs=";
})
];
build-system = [
setuptools
wheel
];
pythonImportsCheck = [ "svgelements" ];
nativeCheckInputs = [
anyio
numpy
pillow
pytest-forked
pytest-xdist
pytestCheckHook
scipy
];
meta = {
description = "SVG Parsing for Elements, Paths, and other SVG Objects";
homepage = "https://github.com/meerk40t/svgelements";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ GaetanLepage ];
};
}