2021-01-01 21:37:12 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytestCheckHook
|
2022-03-23 06:57:22 +00:00
|
|
|
, pythonOlder
|
2022-11-18 06:02:28 +00:00
|
|
|
, httpcore
|
2022-12-13 06:11:57 +00:00
|
|
|
, httpx
|
2022-11-18 06:02:28 +00:00
|
|
|
, wsproto
|
2021-01-01 21:37:12 +00:00
|
|
|
}:
|
2018-03-05 16:17:29 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "h11";
|
2022-11-18 05:59:46 +00:00
|
|
|
version = "0.14.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;
|
2023-03-03 00:48:06 +00:00
|
|
|
hash = "sha256-jxn7vpnnJCD/NcALJ6NMuZN+kCqLgQ4siDAMbwo7aZ0=";
|
2018-03-05 16:17:29 +00:00
|
|
|
};
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [ 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;
|
|
|
|
|
2022-11-18 06:02:28 +00:00
|
|
|
passthru.tests = {
|
2022-12-13 06:11:57 +00:00
|
|
|
inherit httpcore httpx wsproto;
|
2022-11-18 06:02:28 +00:00
|
|
|
};
|
|
|
|
|
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;
|
2023-07-23 17:30:22 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2018-03-05 16:17:29 +00:00
|
|
|
};
|
|
|
|
}
|