summary refs log tree commit diff
diff options
context:
space:
mode:
authorArtturi <Artturin@artturin.com>2022-11-21 21:57:01 +0200
committerGitHub <noreply@github.com>2022-11-21 21:57:01 +0200
commitc30da46cc5e917883e4747037e1073e33b788dbd (patch)
tree0c0fe63e34f14ddb785f45ec39043c6eacf77623
parenta851c6c6e48acc281c97b6c7eb0d26cc84a6ed76 (diff)
parentf3773f3436e62f483af9344f60b90e9f6388df6b (diff)
Merge pull request #202166 from tjni/python-datemath
python310Packages.python-datemath: remove unittest2
-rw-r--r--pkgs/development/python-modules/python-datemath/default.nix11
1 files changed, 9 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/python-datemath/default.nix b/pkgs/development/python-modules/python-datemath/default.nix
index 4b0366ae4da5f..0dc6b6034532e 100644
--- a/pkgs/development/python-modules/python-datemath/default.nix
+++ b/pkgs/development/python-modules/python-datemath/default.nix
@@ -2,9 +2,9 @@
 , arrow
 , buildPythonPackage
 , fetchFromGitHub
+, fetchpatch
 , pythonOlder
 , pytestCheckHook
-, unittest2
 }:
 
 buildPythonPackage rec {
@@ -21,13 +21,20 @@ buildPythonPackage rec {
     sha256 = "sha256-WVWGhyBguE1+KEMQu0N5QxO7IC4rPEJ/2L3VWUCQNi4=";
   };
 
+  patches = [
+    (fetchpatch {
+      name = "remove-unittest2.patch";
+      url = "https://github.com/nickmaccarthy/python-datemath/commit/781daa0241ed327d5f211f3b62f553f3ee3d86e0.patch";
+      hash = "sha256-WD6fuDaSSNXgYWoaUexiWnofCzEZzercEUlqTvOUT5I=";
+    })
+  ];
+
   propagatedBuildInputs = [
     arrow
   ];
 
   checkInputs = [
     pytestCheckHook
-    unittest2
   ];
 
   pytestFlagsArray = [