nixpkgs/pkgs/development/python-modules/wsproto/default.nix
Martin Weinelt 0215034f25 python3.pkgs: Migrate fetchers to use hash
when they already rely on SRI hashes.
2023-03-03 23:59:29 +01:00

32 lines
669 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, h11
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "wsproto";
version = "1.2.0";
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 = with maintainers; [ SuperSandro2000 ];
};
}