Merge pull request #315983 from NixOS/backport-315702-to-release-24.05

[Backport release-24.05] svg2tikz: 3.0.1 -> 3.1.0
This commit is contained in:
Weijia Wang 2024-05-31 15:45:51 +02:00 committed by GitHub
commit 94e665850f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -7,30 +7,39 @@
inkex, inkex,
lxml, lxml,
pytestCheckHook, pytestCheckHook,
pythonRelaxDepsHook,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "svg2tikz"; pname = "svg2tikz";
version = "3.0.1"; version = "3.1.0";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
format = "pyproject"; pyproject = true;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "xyz2tex"; owner = "xyz2tex";
repo = "svg2tikz"; repo = "svg2tikz";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-hvGvJFxhu7llj+tFfZvz12dZ8QYjY7zcLzB5S44l+IM="; hash = "sha256-lL+CQGZMK+rxjw2kTNE6kK3FCt6ARsAD6ROMsXWwDCs=";
}; };
nativeBuildInputs = [ poetry-core ]; build-system = [
poetry-core
];
propagatedBuildInputs = [ dependencies = [
inkex inkex
lxml lxml
]; ];
pythonRelaxDeps = [
"lxml"
];
nativeBuildInputs = [ pythonRelaxDepsHook ];
nativeCheckInputs = [ pytestCheckHook ]; nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "svg2tikz" ]; pythonImportsCheck = [ "svg2tikz" ];