Skip to content

Commit

Permalink
python312Packages.svgutils: drop nose dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Sigmanificient committed Jul 28, 2024
1 parent e36e9f5 commit 5f87ed0
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions pkgs/development/python-modules/svgutils/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
fetchpatch2,
setuptools,
lxml,
pytestCheckHook,
nose,
}:

buildPythonPackage rec {
Expand All @@ -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; {
Expand Down

0 comments on commit 5f87ed0

Please sign in to comment.