Merge pull request #67303 from jonringer/bump-wsproto
python3Packages.wsproto: 0.14.1 -> 0.15.0
This commit is contained in:
commit
1e2497720f
25
pkgs/development/python-modules/wsproto/0.14.nix
Normal file
25
pkgs/development/python-modules/wsproto/0.14.nix
Normal 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;
|
||||||
|
};
|
||||||
|
}
|
@ -1,15 +1,20 @@
|
|||||||
{ lib, buildPythonPackage, fetchPypi, h11, enum34, pytest }:
|
{ lib, buildPythonPackage, fetchPypi, pythonOlder, isPy36
|
||||||
|
, dataclasses
|
||||||
|
, h11
|
||||||
|
, pytest
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "wsproto";
|
pname = "wsproto";
|
||||||
version = "0.14.1";
|
version = "0.15.0";
|
||||||
|
disabled = pythonOlder "3.6"; # python versions <3.6
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "051s127qb5dladxa14n9nqajwq7xki1dz1was5r5v9df5a0jq8pd";
|
sha256 = "17gsxlli4w8am1wwwl3k90hpdfa213ax40ycbbvb7hjx1v1rhiv1";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ h11 enum34 ];
|
propagatedBuildInputs = [ h11 ] ++ lib.optional isPy36 dataclasses;
|
||||||
|
|
||||||
checkInputs = [ pytest ];
|
checkInputs = [ pytest ];
|
||||||
|
|
||||||
|
@ -6077,7 +6077,10 @@ in {
|
|||||||
|
|
||||||
us = callPackage ../development/python-modules/us { };
|
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 { };
|
h11 = callPackage ../development/python-modules/h11 { };
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user