Merge pull request #330381 from Sigmanificient/svgutils

python312Packages.svgutils: drop nose dependency

authored by Emily and committed by GitHub b5e5c37f b149ff8c

+16 -6
+16 -6
pkgs/development/python-modules/svgutils/default.nix
··· 2 2 lib, 3 3 buildPythonPackage, 4 4 fetchFromGitHub, 5 - pythonOlder, 5 + fetchpatch2, 6 6 setuptools, 7 7 lxml, 8 8 pytestCheckHook, 9 - nose, 10 9 }: 11 10 12 11 buildPythonPackage rec { ··· 25 24 26 25 dependencies = [ lxml ]; 27 26 28 - doCheck = pythonOlder "3.12"; 27 + patches = [ 28 + # Remove nose dependency, see: https://github.com/btel/svg_utils/pull/131 29 29 30 - nativeCheckInputs = [ 31 - pytestCheckHook 32 - nose 30 + # this first commit is required, as isort moved nose imports 31 + (fetchpatch2 { 32 + url = "https://github.com/btel/svg_utils/commit/48b078a729aeb6b1160142ab65157474c95a61b6.patch?full_index=1"; 33 + hash = "sha256-9toOFfNkgGF3TvM340vYOTkuSEHBeiyBRSGqqobfiqI="; 34 + }) 35 + 36 + # migrate to pytest 37 + (fetchpatch2 { 38 + url = "https://github.com/btel/svg_utils/commit/931a80220be7c0efa2fc6e1d47858d69a08df85e.patch?full_index=1"; 39 + hash = "sha256-SMv0i8p3s57TDn6NM17RrHF9kVgsy2YJJ0KEBQKn2J0="; 40 + }) 33 41 ]; 42 + 43 + nativeCheckInputs = [ pytestCheckHook ]; 34 44 35 45 pythonImportsCheck = [ "svgutils" ]; 36 46