Skip to content

Commit

Permalink
python3Packages.expiringdict: remove nose
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewKvalheim authored and shahinism committed Jul 15, 2024
1 parent ed4eaef commit c0dca70
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions pkgs/development/python-modules/expiringdict/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@
lib,
buildPythonPackage,
fetchFromGitHub,
fetchpatch2,
dill,
coverage,
coveralls,
mock,
nose,
pytestCheckHook,
}:

buildPythonPackage rec {
Expand All @@ -23,20 +22,20 @@ buildPythonPackage rec {
hash = "sha256-vRhJSHIqc51I+s/wndtfANM44CKW3QS1iajqyoSBf0I=";
};

patches = [
# apply mailgun/expiringdict#49 to address NixOS/nixpkgs#326513
(fetchpatch2 {
url = "https://github.com/mailgun/expiringdict/commit/1c0f82232d20f8b3b31c9269a4d0e9510c1721a6.patch";
hash = "sha256-IeeJVb2tOwRhEPNGqM30fNZyz3jFcnZNWC3I6K1+hSY=";
})
];

nativeCheckInputs = [
dill
coverage
coveralls
mock
nose
pytestCheckHook
];

checkPhase = ''
runHook preCheck
nosetests -v --with-coverage --cover-package=expiringdict
runHook postCheck
'';

pythonImportsCheck = [ "expiringdict" ];

meta = with lib; {
Expand Down

0 comments on commit c0dca70

Please sign in to comment.