2021-01-01 21:37:12 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytestCheckHook
|
2022-03-23 06:57:22 +00:00
|
|
|
, pythonOlder
|
2021-01-01 21:37:12 +00:00
|
|
|
}:
|
2018-03-05 16:17:29 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "h11";
|
2022-03-02 21:42:00 +00:00
|
|
|
version = "0.13.0";
|
2022-03-23 06:57:22 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
2018-03-05 16:17:29 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-03-02 21:42:00 +00:00
|
|
|
sha256 = "sha256-cIE8ETUIeiSKTTjMDhoBgf+rIYgUGpPq9WeUDDlX/wY=";
|
2018-03-05 16:17:29 +00:00
|
|
|
};
|
|
|
|
|
2021-01-01 21:37:12 +00:00
|
|
|
checkInputs = [ pytestCheckHook ];
|
2018-03-05 16:17:29 +00:00
|
|
|
|
2019-09-13 15:43:21 +00:00
|
|
|
# Some of the tests use localhost networking.
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
2018-03-05 16:17:29 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Pure-Python, bring-your-own-I/O implementation of HTTP/1.1";
|
2021-01-01 21:37:12 +00:00
|
|
|
homepage = "https://github.com/python-hyper/h11";
|
2018-03-05 16:17:29 +00:00
|
|
|
license = licenses.mit;
|
2022-03-23 06:57:22 +00:00
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
2018-03-05 16:17:29 +00:00
|
|
|
};
|
|
|
|
}
|