depot/third_party/nixpkgs/pkgs/development/python-modules/hpack/default.nix
Default email 22017988c6 Project import generated by Copybara.
GitOrigin-RevId: c777cdf5c564015d5f63b09cc93bef4178b19b01
2022-04-27 11:35:20 +02:00

34 lines
688 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, hypothesis
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "hpack";
version = "4.0.0";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "python-hyper";
repo = "hpack";
rev = "v${version}";
sha256 = "sha256-2CehGy3K5fKbkB1J8+8x1D4XvnBn1Mbapx+p8rdXDYc=";
};
checkInputs = [
hypothesis
pytestCheckHook
];
pythonImportsCheck = [ "hpack" ];
meta = with lib; {
description = "Pure-Python HPACK header compression";
homepage = "https://github.com/python-hyper/hpack";
license = licenses.mit;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}