nixpkgs-suyu/pkgs/development/python-modules/wsproto/default.nix

31 lines
665 B
Nix
Raw Normal View History

{ lib, buildPythonPackage, fetchPypi, pythonOlder, isPy36
, dataclasses
, h11
, pytest
}:
2018-03-05 17:18:02 +01:00
buildPythonPackage rec {
pname = "wsproto";
version = "0.15.0";
disabled = pythonOlder "3.6"; # python versions <3.6
2018-03-05 17:18:02 +01:00
src = fetchPypi {
inherit pname version;
sha256 = "17gsxlli4w8am1wwwl3k90hpdfa213ax40ycbbvb7hjx1v1rhiv1";
2018-03-05 17:18:02 +01:00
};
propagatedBuildInputs = [ h11 ] ++ lib.optional isPy36 dataclasses;
2018-03-05 17:18:02 +01:00
2019-02-14 08:37:33 +01:00
checkInputs = [ pytest ];
checkPhase = ''
py.test
'';
2019-04-17 19:56:56 +02:00
meta = with lib; {
description = "Pure Python, pure state-machine WebSocket implementation";
homepage = https://github.com/python-hyper/wsproto/;
license = licenses.mit;
};
2018-03-05 17:18:02 +01:00
}