Files
nixpkgs/pkgs/development/python-modules/geventhttpclient/default.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

63 lines
1.3 KiB
Nix

{
lib,
brotli,
buildPythonPackage,
certifi,
dpkt,
fetchFromGitHub,
gevent,
pytestCheckHook,
pythonOlder,
setuptools,
stdenv,
urllib3,
}:
buildPythonPackage rec {
pname = "geventhttpclient";
version = "2.3.4";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "geventhttpclient";
repo = "geventhttpclient";
tag = version;
# TODO: unvendor llhttp
fetchSubmodules = true;
hash = "sha256-X85co03fMG7OSpkL02n3ektRNzu7oHChtwZzkspsSTk=";
};
build-system = [ setuptools ];
dependencies = [
brotli
certifi
gevent
urllib3
];
nativeCheckInputs = [
dpkt
pytestCheckHook
];
# lots of: [Errno 48] Address already in use: ('127.0.0.1', 54323)
doCheck = !stdenv.hostPlatform.isDarwin;
__darwinAllowLocalNetworking = true;
disabledTestMarks = [ "network" ];
pythonImportsCheck = [ "geventhttpclient" ];
meta = with lib; {
homepage = "https://github.com/geventhttpclient/geventhttpclient";
description = "High performance, concurrent HTTP client library using gevent";
changelog = "https://github.com/geventhttpclient/geventhttpclient/releases/tag/${src.tag}";
license = licenses.mit;
maintainers = with maintainers; [ koral ];
};
}