about summary refs log tree commit diff
path: root/pkgs/development/python-modules/wsproto
diff options
context:
space:
mode:
authorJonathan Ringer <jonringer117@gmail.com>2019-08-22 14:31:54 -0700
committerJonathan Ringer <jonringer117@gmail.com>2019-08-22 15:24:15 -0700
commit3aa473687b65b19f32009b750964beaced492566 (patch)
tree96368961c6064f4c3440eb1522524cb7a3e0e375 /pkgs/development/python-modules/wsproto
parent0372567397c24eb0b7df44b71cfb96e43bb8bd4a (diff)
python3Packages.wsproto: 0.14.1 -> 0.15.0
Diffstat (limited to 'pkgs/development/python-modules/wsproto')
-rw-r--r--pkgs/development/python-modules/wsproto/default.nix13
1 files changed, 9 insertions, 4 deletions
diff --git a/pkgs/development/python-modules/wsproto/default.nix b/pkgs/development/python-modules/wsproto/default.nix
index 36aaf0ec8ceb3..dfbf9ceabdc32 100644
--- a/pkgs/development/python-modules/wsproto/default.nix
+++ b/pkgs/development/python-modules/wsproto/default.nix
@@ -1,15 +1,20 @@
-{ lib, buildPythonPackage, fetchPypi, h11, enum34, pytest }:
+{ lib, buildPythonPackage, fetchPypi, pythonOlder, isPy36
+, dataclasses
+, h11
+, pytest
+}:
 
 buildPythonPackage rec {
   pname = "wsproto";
-  version = "0.14.1";
+  version = "0.15.0";
+  disabled = pythonOlder "3.6"; # python versions <3.6
 
   src = fetchPypi {
     inherit pname version;
-    sha256 = "051s127qb5dladxa14n9nqajwq7xki1dz1was5r5v9df5a0jq8pd";
+    sha256 = "17gsxlli4w8am1wwwl3k90hpdfa213ax40ycbbvb7hjx1v1rhiv1";
   };
 
-  propagatedBuildInputs = [ h11 enum34 ];
+  propagatedBuildInputs = [ h11 ] ++ lib.optional isPy36 dataclasses;
 
   checkInputs = [ pytest ];