From c0dca70de88e63d764ee826ae5273c0c80456b95 Mon Sep 17 00:00:00 2001 From: Andrew Kvalheim Date: Fri, 12 Jul 2024 08:35:33 -0700 Subject: [PATCH] python3Packages.expiringdict: remove nose Addresses NixOS/nixpkgs#326513 by applying mailgun/expiringdict#49 --- .../python-modules/expiringdict/default.nix | 23 +++++++++---------- 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/pkgs/development/python-modules/expiringdict/default.nix b/pkgs/development/python-modules/expiringdict/default.nix index 772b3d6363357..6478de1aff92d 100644 --- a/pkgs/development/python-modules/expiringdict/default.nix +++ b/pkgs/development/python-modules/expiringdict/default.nix @@ -2,11 +2,10 @@ lib, buildPythonPackage, fetchFromGitHub, + fetchpatch2, dill, - coverage, - coveralls, mock, - nose, + pytestCheckHook, }: buildPythonPackage rec { @@ -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; {