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