summary refs log tree commit diff
path: root/pkgs/development
diff options
context:
space:
mode:
authorLancelot SIX <lsix+github@lancelotsix.com>2019-08-23 00:56:02 +0200
committerGitHub <noreply@github.com>2019-08-23 00:56:02 +0200
commit1e2497720f6a1b6b5749111ae6f4c990717ac2dd (patch)
treeefbb76bfd2a87c03a1e373e79a0f117a71dde275 /pkgs/development
parent1f3b789ebe954bdd59f5ec05761143c37cdfa179 (diff)
parent3aa473687b65b19f32009b750964beaced492566 (diff)
downloadnixpkgs-1e2497720f6a1b6b5749111ae6f4c990717ac2dd.tar
nixpkgs-1e2497720f6a1b6b5749111ae6f4c990717ac2dd.tar.gz
nixpkgs-1e2497720f6a1b6b5749111ae6f4c990717ac2dd.tar.bz2
nixpkgs-1e2497720f6a1b6b5749111ae6f4c990717ac2dd.tar.lz
nixpkgs-1e2497720f6a1b6b5749111ae6f4c990717ac2dd.tar.xz
nixpkgs-1e2497720f6a1b6b5749111ae6f4c990717ac2dd.tar.zst
nixpkgs-1e2497720f6a1b6b5749111ae6f4c990717ac2dd.zip
Merge pull request #67303 from jonringer/bump-wsproto
python3Packages.wsproto: 0.14.1 -> 0.15.0
Diffstat (limited to 'pkgs/development')
-rw-r--r--pkgs/development/python-modules/wsproto/0.14.nix25
-rw-r--r--pkgs/development/python-modules/wsproto/default.nix13
2 files changed, 34 insertions, 4 deletions
diff --git a/pkgs/development/python-modules/wsproto/0.14.nix b/pkgs/development/python-modules/wsproto/0.14.nix
new file mode 100644
index 00000000000..36aaf0ec8ce
--- /dev/null
+++ b/pkgs/development/python-modules/wsproto/0.14.nix
@@ -0,0 +1,25 @@
+{ lib, buildPythonPackage, fetchPypi, h11, enum34, pytest }:
+
+buildPythonPackage rec {
+  pname = "wsproto";
+  version = "0.14.1";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "051s127qb5dladxa14n9nqajwq7xki1dz1was5r5v9df5a0jq8pd";
+  };
+
+  propagatedBuildInputs = [ h11 enum34 ];
+
+  checkInputs = [ pytest ];
+
+  checkPhase = ''
+    py.test
+  '';
+
+  meta = with lib; {
+    description = "Pure Python, pure state-machine WebSocket implementation";
+    homepage = https://github.com/python-hyper/wsproto/;
+    license = licenses.mit;
+  };
+}
diff --git a/pkgs/development/python-modules/wsproto/default.nix b/pkgs/development/python-modules/wsproto/default.nix
index 36aaf0ec8ce..dfbf9ceabdc 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 ];