Files
nixpkgs/pkgs/development/python-modules/asyncwhois/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

70 lines
1.5 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
hatchling,
pytest-asyncio,
pytest-mock,
pytestCheckHook,
python-dateutil,
python-socks,
tldextract,
whodap,
}:
buildPythonPackage rec {
pname = "asyncwhois";
version = "1.1.12";
pyproject = true;
src = fetchFromGitHub {
owner = "pogzyb";
repo = "asyncwhois";
tag = "v${version}";
hash = "sha256-bi8tBT6htxEgE/qoDID2GykCrHVfpe8EcH/Mbq9B0T4=";
};
build-system = [ hatchling ];
dependencies = [
python-dateutil
python-socks
tldextract
whodap
]
++ python-socks.optional-dependencies.asyncio;
nativeCheckInputs = [
pytest-asyncio
pytest-mock
pytestCheckHook
];
disabledTests = [
# Tests require network access
"test_pywhois_aio_get_hostname_from_ip"
"test_pywhois_get_hostname_from_ip"
"test_pywhois_aio_lookup_ipv4"
"test_not_found"
"test_aio_from_whois_cmd"
"test_aio_get_hostname_from_ip"
"test_from_whois_cmd"
"test_get_hostname_from_ip"
"test_whois_query_run"
"test_whois_query_create_connection"
"test_whois_query_send_and_recv"
"test_input_parameters_for_domain_query"
"test__get_top_level_domain"
];
pythonImportsCheck = [ "asyncwhois" ];
meta = {
description = "Python module for retrieving WHOIS information";
homepage = "https://github.com/pogzyb/asyncwhois";
changelog = "https://github.com/pogzyb/asyncwhois/releases/tag/v${version}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
};
}