2020-10-28 20:43:51 +01:00
|
|
|
{ lib
|
2020-08-27 23:36:12 +02:00
|
|
|
, buildPythonPackage
|
2020-10-28 20:43:51 +01:00
|
|
|
, pythonOlder
|
2020-08-27 23:36:12 +02:00
|
|
|
, fetchFromGitHub
|
2021-06-12 22:20:55 +02:00
|
|
|
, anyio
|
2021-11-29 17:58:25 +01:00
|
|
|
, certifi
|
2020-08-27 23:36:12 +02:00
|
|
|
, h11
|
2020-10-28 20:43:51 +01:00
|
|
|
, h2
|
|
|
|
, pproxy
|
2021-04-22 00:17:47 +02:00
|
|
|
, pytest-asyncio
|
2020-10-28 20:43:51 +01:00
|
|
|
, pytestCheckHook
|
2021-07-20 22:42:24 +02:00
|
|
|
, pytest-cov
|
2021-11-29 17:58:25 +01:00
|
|
|
, pytest-httpbin
|
2020-08-27 23:36:12 +02:00
|
|
|
, sniffio
|
2021-06-12 22:20:55 +02:00
|
|
|
, trio
|
2021-01-30 19:42:05 +01:00
|
|
|
, trustme
|
2021-04-22 00:17:47 +02:00
|
|
|
, uvicorn
|
2020-08-27 23:36:12 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "httpcore";
|
2021-11-29 17:58:25 +01:00
|
|
|
version = "0.14.3";
|
2020-10-28 20:43:51 +01:00
|
|
|
disabled = pythonOlder "3.6";
|
2020-08-27 23:36:12 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "encode";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-11-29 17:58:25 +01:00
|
|
|
sha256 = "sha256-jPsbMhY1lWKBXlh6hsX6DGKXi/g7VQSU00tF6H7qkOo=";
|
2020-08-27 23:36:12 +02:00
|
|
|
};
|
|
|
|
|
2020-10-28 20:43:51 +01:00
|
|
|
propagatedBuildInputs = [
|
2021-06-12 22:20:55 +02:00
|
|
|
anyio
|
2021-11-29 17:58:25 +01:00
|
|
|
certifi
|
2020-10-28 20:43:51 +01:00
|
|
|
h11
|
|
|
|
h2
|
|
|
|
sniffio
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pproxy
|
2021-04-22 00:17:47 +02:00
|
|
|
pytest-asyncio
|
2020-10-28 20:43:51 +01:00
|
|
|
pytestCheckHook
|
2021-07-20 22:42:24 +02:00
|
|
|
pytest-cov
|
2021-11-29 17:58:25 +01:00
|
|
|
pytest-httpbin
|
2021-06-12 22:20:55 +02:00
|
|
|
trio
|
2021-01-30 19:42:05 +01:00
|
|
|
trustme
|
2021-04-22 00:17:47 +02:00
|
|
|
uvicorn
|
2020-10-28 20:43:51 +01:00
|
|
|
];
|
|
|
|
|
2020-08-27 23:36:12 +02:00
|
|
|
pythonImportsCheck = [ "httpcore" ];
|
|
|
|
|
2020-10-28 20:43:51 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = "A minimal low-level HTTP client";
|
2020-08-27 23:36:12 +02:00
|
|
|
homepage = "https://github.com/encode/httpcore";
|
|
|
|
license = licenses.bsd3;
|
2020-10-28 20:43:51 +01:00
|
|
|
maintainers = with maintainers; [ ris ];
|
2020-08-27 23:36:12 +02:00
|
|
|
};
|
|
|
|
}
|