2021-01-01 21:37:12 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
2018-03-05 16:17:29 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "h11";
|
2021-01-01 21:37:12 +00:00
|
|
|
version = "0.12.0";
|
2018-03-05 16:17:29 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-01-01 21:37:12 +00:00
|
|
|
sha256 = "0hk0nll6qazsambp3kl8cxxsbl4gv5y9252qadyk0jky0sv2q8j7";
|
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 16:43:21 +01: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;
|
|
|
|
};
|
|
|
|
}
|