My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nomicon/pkgs/development/python-modules/httpcore/default.nix

60 lines
937 B

{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, anyio
, certifi
, h11
, h2
, pproxy
, pytest-asyncio
, pytestCheckHook
, pytest-cov
, pytest-httpbin
, sniffio
, trio
, trustme
, uvicorn
}:
buildPythonPackage rec {
pname = "httpcore";
version = "0.14.4";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "encode";
repo = pname;
rev = version;
sha256 = "19zsg8ijw0s1722ka67mjxx5z07lx9jq36z97l1fa6z1129wq240";
};
propagatedBuildInputs = [
anyio
certifi
h11
h2
sniffio
];
checkInputs = [
pproxy
pytest-asyncio
pytestCheckHook
pytest-cov
pytest-httpbin
trio
trustme
uvicorn
];
pythonImportsCheck = [ "httpcore" ];
meta = with lib; {
description = "A minimal low-level HTTP client";
homepage = "https://github.com/encode/httpcore";
license = licenses.bsd3;
maintainers = with maintainers; [ ris ];
};
}