Files
nixpkgs/pkgs/development/python-modules/geventhttpclient/default.nix
T
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00

60 lines
1.2 KiB
Nix

{
lib,
brotli,
buildPythonPackage,
certifi,
dpkt,
fetchFromGitHub,
gevent,
pytestCheckHook,
setuptools,
stdenv,
urllib3,
}:
buildPythonPackage rec {
pname = "geventhttpclient";
version = "2.3.4";
pyproject = true;
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 = {
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 = lib.licenses.mit;
maintainers = with lib.maintainers; [ koral ];
};
}