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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
746 B
Nix
Raw Normal View History

2021-01-01 21:37:12 +00:00
{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, pythonOlder
, httpcore
, httpx
, wsproto
2021-01-01 21:37:12 +00:00
}:
2018-03-05 16:17:29 +00:00
buildPythonPackage rec {
pname = "h11";
version = "0.14.0";
disabled = pythonOlder "3.6";
2018-03-05 16:17:29 +00:00
src = fetchPypi {
inherit pname version;
hash = "sha256-jxn7vpnnJCD/NcALJ6NMuZN+kCqLgQ4siDAMbwo7aZ0=";
2018-03-05 16:17:29 +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;
passthru.tests = {
inherit httpcore httpx wsproto;
};
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
};
}