1{ lib
2, buildPythonPackage
3, pythonOlder
4, fetchPypi
5, hpack
6, hyperframe
7, pytestCheckHook
8, hypothesis
9}:
10
11buildPythonPackage rec {
12 pname = "h2";
13 version = "4.1.0";
14 format = "setuptools";
15
16 disabled = pythonOlder "3.6";
17
18 src = fetchPypi {
19 inherit pname version;
20 sha256 = "sha256-qDrKCPvnqst5/seIycC6yTY0NWDtnsGLgqE6EsKNKrs=";
21 };
22
23 propagatedBuildInputs = [
24 hpack
25 hyperframe
26 ];
27
28 checkInputs = [
29 pytestCheckHook
30 hypothesis
31 ];
32
33 pythonImportsCheck = [
34 "h2.connection"
35 "h2.config"
36 ];
37
38 meta = with lib; {
39 description = "HTTP/2 State-Machine based protocol implementation";
40 homepage = "https://github.com/python-hyper/h2";
41 license = licenses.mit;
42 maintainers = with maintainers; [ SuperSandro2000 ];
43 };
44}