Merge pull request #67303 from jonringer/bump-wsproto

python3Packages.wsproto: 0.14.1 -> 0.15.0
This commit is contained in:
Lancelot SIX 2019-08-23 00:56:02 +02:00 committed by GitHub
commit 1e2497720f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 38 additions and 5 deletions

View File

@ -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;
};
}

View File

@ -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 ];

View File

@ -6077,7 +6077,10 @@ in {
us = callPackage ../development/python-modules/us { };
wsproto = callPackage ../development/python-modules/wsproto { };
wsproto = if (pythonAtLeast "3.6") then
callPackage ../development/python-modules/wsproto { }
else
callPackage ../development/python-modules/wsproto/0.14.nix { };
h11 = callPackage ../development/python-modules/h11 { };