about summary refs log tree commit diff
path: root/pkgs/development/python-modules/daphne
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2019-05-11 13:21:33 -0500
committerMario Rodas <marsam@users.noreply.github.com>2019-05-11 13:21:33 -0500
commitfbdb9ce78716d9fb07b4d50fd90f18f1647a3805 (patch)
treeaa3cdc68a3c27f1fa9e95e260dc8b8f1a76f83da /pkgs/development/python-modules/daphne
parentb589619eda01f928dcbb862103ce6be25f1188fd (diff)
python3Packages.daphne: 2.2.5 -> 2.3.0
Diffstat (limited to 'pkgs/development/python-modules/daphne')
-rw-r--r--pkgs/development/python-modules/daphne/default.nix14
1 files changed, 11 insertions, 3 deletions
diff --git a/pkgs/development/python-modules/daphne/default.nix b/pkgs/development/python-modules/daphne/default.nix
index da85fbb1d9b78..e577617c47807 100644
--- a/pkgs/development/python-modules/daphne/default.nix
+++ b/pkgs/development/python-modules/daphne/default.nix
@@ -1,10 +1,10 @@
-{ stdenv, buildPythonPackage, isPy3k, fetchFromGitHub
+{ stdenv, buildPythonPackage, isPy3k, fetchFromGitHub, fetchpatch
 , asgiref, autobahn, twisted, pytestrunner
 , hypothesis, pytest, pytest-asyncio
 }:
 buildPythonPackage rec {
   pname = "daphne";
-  version = "2.2.5";
+  version = "2.3.0";
 
   disabled = !isPy3k;
 
@@ -12,9 +12,17 @@ buildPythonPackage rec {
     owner = "django";
     repo = pname;
     rev = version;
-    sha256 = "0ixgq1rr3s60bmrwx8qwvlvs3lag1c2nrmg4iy7wcmb8i1ddylqr";
+    sha256 = "020afrvbnid13gkgjpqznl025zpynisa96kybmf8q7m3wp1iq1nl";
   };
 
+  patches = [
+    # Fix compatibility with Hypothesis 4. See: https://github.com/django/daphne/pull/261
+    (fetchpatch {
+      url = "https://github.com/django/daphne/commit/2df5096c5b63a791c209e12198ad89c998869efd.patch";
+      sha256 = "0046krzcn02mihqmsjd80kk5h5flv44nqxpapa17g6dvq3jnb97n";
+    })
+  ];
+
   nativeBuildInputs = [ pytestrunner ];
 
   propagatedBuildInputs = [ asgiref autobahn twisted ];