1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 hypothesis,
7 pytestCheckHook,
8}:
9
10buildPythonPackage rec {
11 pname = "hpack";
12 version = "4.1.0";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "python-hyper";
17 repo = "hpack";
18 rev = "v${version}";
19 hash = "sha256-vbxfDlRDwMXuzkPO0oceCpSz1ekLNxLSj4iocdHo680=";
20 };
21
22 build-system = [ setuptools ];
23
24 nativeCheckInputs = [
25 hypothesis
26 pytestCheckHook
27 ];
28
29 pythonImportsCheck = [ "hpack" ];
30
31 meta = with lib; {
32 changelog = "https://github.com/python-hyper/hpack/blob/${src.rev}/CHANGELOG.rst";
33 description = "Pure-Python HPACK header compression";
34 homepage = "https://github.com/python-hyper/hpack";
35 license = licenses.mit;
36 maintainers = [ ];
37 };
38}