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

27 lines
564 B
Nix
Raw Normal View History

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 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;
};
}