mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-07 12:44:20 +00:00
Merge pull request #330381 from Sigmanificient/svgutils
python312Packages.svgutils: drop nose dependency
This commit is contained in:
commit
b5e5c37f27
@ -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; {
|
||||
|
Loading…
Reference in New Issue
Block a user