depot/third_party/nixpkgs/pkgs/development/python-modules/wsproto/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

33 lines
668 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pythonOlder,
h11,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "wsproto";
version = "1.2.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-rVZfJuy5JYij5DvD2WFk3oTNmQJIKxMNDduqlmSoUGU=";
};
propagatedBuildInputs = [ h11 ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "wsproto" ];
meta = with lib; {
description = "Pure Python, pure state-machine WebSocket implementation";
homepage = "https://github.com/python-hyper/wsproto/";
license = licenses.mit;
maintainers = [ ];
};
}