Merge pull request #330381 from Sigmanificient/svgutils

python312Packages.svgutils: drop nose dependency
This commit is contained in:
Emily 2024-07-28 21:05:34 +01:00 committed by GitHub
commit b5e5c37f27
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,11 +2,10 @@
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
fetchpatch2,
setuptools,
lxml,
pytestCheckHook,
nose,
}:
buildPythonPackage rec {
@ -25,13 +24,24 @@ buildPythonPackage rec {
dependencies = [ lxml ];
doCheck = pythonOlder "3.12";
patches = [
# Remove nose dependency, see: https://github.com/btel/svg_utils/pull/131
nativeCheckInputs = [
pytestCheckHook
nose
# this first commit is required, as isort moved nose imports
(fetchpatch2 {
url = "https://github.com/btel/svg_utils/commit/48b078a729aeb6b1160142ab65157474c95a61b6.patch?full_index=1";
hash = "sha256-9toOFfNkgGF3TvM340vYOTkuSEHBeiyBRSGqqobfiqI=";
})
# migrate to pytest
(fetchpatch2 {
url = "https://github.com/btel/svg_utils/commit/931a80220be7c0efa2fc6e1d47858d69a08df85e.patch?full_index=1";
hash = "sha256-SMv0i8p3s57TDn6NM17RrHF9kVgsy2YJJ0KEBQKn2J0=";
})
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "svgutils" ];
meta = with lib; {