Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / h11 / default.nix
blob872ef1ab4358ca922d95c77e71916c86cccef5d6
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , pytestCheckHook
5 , pythonOlder
6 , httpcore
7 , httpx
8 , wsproto
9 }:
11 buildPythonPackage rec {
12   pname = "h11";
13   version = "0.14.0";
14   disabled = pythonOlder "3.6";
16   src = fetchPypi {
17     inherit pname version;
18     hash = "sha256-jxn7vpnnJCD/NcALJ6NMuZN+kCqLgQ4siDAMbwo7aZ0=";
19   };
21   nativeCheckInputs = [ pytestCheckHook ];
23   # Some of the tests use localhost networking.
24   __darwinAllowLocalNetworking = true;
26   passthru.tests = {
27     inherit httpcore httpx wsproto;
28   };
30   meta = with lib; {
31     description = "Pure-Python, bring-your-own-I/O implementation of HTTP/1.1";
32     homepage = "https://github.com/python-hyper/h11";
33     license = licenses.mit;
34     maintainers = with maintainers; [ ];
35   };