summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorRobert T. McGibbon <rmcgibbo@gmail.com>2021-05-07 17:18:34 -0400
committerJonathan Ringer <jonringer@users.noreply.github.com>2021-05-07 15:19:44 -0700
commitd807301cceaad1073eb9d5175df270e034269018 (patch)
treef988682b0f4658d09221808380630bcc03eb8aaa /pkgs
parent2c301e3f3fb78cbea4d77c09cd3cbc99d5fa6e0e (diff)
python3Packages.rfc3339-validator: fix on darwin
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/python-modules/rfc3339-validator/default.nix10
1 files changed, 10 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/rfc3339-validator/default.nix b/pkgs/development/python-modules/rfc3339-validator/default.nix
index f51a232550ba6..07bc719698ab6 100644
--- a/pkgs/development/python-modules/rfc3339-validator/default.nix
+++ b/pkgs/development/python-modules/rfc3339-validator/default.nix
@@ -1,5 +1,6 @@
 { lib
 , buildPythonPackage
+, fetchpatch
 , fetchPypi
 , pytestCheckHook
 , hypothesis
@@ -17,6 +18,15 @@ buildPythonPackage rec {
     sha256 = "7a578aa0740e9ee2b48356fe1f347139190c4c72e27f303b3617054efd15df32";
   };
 
+  patches = [
+    # Fixes test failure on darwin. Filed upstream: https://github.com/naimetti/rfc3339-validator/pull/3.
+    # Not yet merged.
+    (fetchpatch {
+      url = "https://github.com/rmcgibbo/rfc3339-validator/commit/4b6bb62c30bd158d3b4663690dcba1084ac31770.patch";
+      sha256 = "0h9k82hhmp2xfzn49n3i47ws3rpm9lvfs2rjrds7hgx5blivpwl6";
+    })
+  ];
+
   propagatedBuildInputs = [ six ];
 
   checkInputs = [ pytestCheckHook hypothesis strict-rfc3339 ];