From 4fb6f6bbf6bfe5d93206cd33d87ccffd1e0006bf Mon Sep 17 00:00:00 2001 From: Jonas Meurer Date: Wed, 29 May 2024 20:57:45 +0200 Subject: [PATCH] svg2tikz: 3.0.1 -> 3.1.0 Fix the build issue by relaxing lxml dependency. Diff: https://github.com/xyz2tex/svg2tikz/compare/v3.0.1...v3.1.0 Changelog: https://github.com/xyz2tex/svg2tikz/releases/tag/v3.1.0 (cherry picked from commit f6cf233cb91b1395682e01c0bf73239291131e72) --- .../python-modules/svg2tikz/default.nix | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/svg2tikz/default.nix b/pkgs/development/python-modules/svg2tikz/default.nix index de3e1c96770a2..8d143ee4d58a0 100644 --- a/pkgs/development/python-modules/svg2tikz/default.nix +++ b/pkgs/development/python-modules/svg2tikz/default.nix @@ -7,30 +7,39 @@ inkex, lxml, pytestCheckHook, + pythonRelaxDepsHook, }: buildPythonPackage rec { pname = "svg2tikz"; - version = "3.0.1"; + version = "3.1.0"; disabled = pythonOlder "3.7"; - format = "pyproject"; + pyproject = true; src = fetchFromGitHub { owner = "xyz2tex"; repo = "svg2tikz"; 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 lxml ]; + pythonRelaxDeps = [ + "lxml" + ]; + + nativeBuildInputs = [ pythonRelaxDepsHook ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "svg2tikz" ];