2021-06-19 11:57:09 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
|
|
|
, fetchPypi
|
|
|
|
, hpack
|
|
|
|
, hyperframe
|
|
|
|
, pytestCheckHook
|
|
|
|
, hypothesis
|
|
|
|
}:
|
2017-11-02 23:33:38 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "h2";
|
2022-01-15 17:21:15 +00:00
|
|
|
version = "4.1.0";
|
2021-06-19 11:57:09 +00:00
|
|
|
format = "setuptools";
|
2022-01-15 17:21:15 +00:00
|
|
|
|
2021-06-19 11:57:09 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
2017-11-02 23:33:38 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-01-15 17:21:15 +00:00
|
|
|
sha256 = "sha256-qDrKCPvnqst5/seIycC6yTY0NWDtnsGLgqE6EsKNKrs=";
|
2017-11-02 23:33:38 +00:00
|
|
|
};
|
|
|
|
|
2021-06-19 11:57:09 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
hpack
|
|
|
|
hyperframe
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
hypothesis
|
|
|
|
];
|
2017-11-02 23:33:38 +00:00
|
|
|
|
2021-07-18 10:26:11 +00:00
|
|
|
pythonImportsCheck = [
|
2021-06-19 11:57:09 +00:00
|
|
|
"h2.connection"
|
|
|
|
"h2.config"
|
|
|
|
];
|
2020-11-29 19:25:18 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-11-02 23:33:38 +00:00
|
|
|
description = "HTTP/2 State-Machine based protocol implementation";
|
2022-02-11 15:53:36 +00:00
|
|
|
homepage = "https://github.com/python-hyper/h2";
|
2017-11-02 23:33:38 +00:00
|
|
|
license = licenses.mit;
|
2022-01-15 17:21:15 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2017-11-02 23:33:38 +00:00
|
|
|
};
|
|
|
|
}
|