nixpkgs/pkgs/development/python-modules/h2/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
774 B
Nix
Raw Normal View History

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
pythonImportsCheck = [
2021-06-19 13:57:09 +02:00
"h2.connection"
"h2.config"
];
2020-11-29 20:25:18 +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;
maintainers = with maintainers; [ SuperSandro2000 ];
2017-11-03 00:33:38 +01:00
};
}