Files
nixpkgs/pkgs/development/python-modules/cymruwhois/default.nix
T
2025-08-18 20:09:37 +02:00

52 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
python-memcached,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "cymruwhois";
version = "1.6";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "JustinAzoff";
repo = "python-cymruwhois";
tag = version;
hash = "sha256-d9m668JYI9mxUycoVWyaDCR7SOca+ebymZxWtgSPWNU=";
};
build-system = [ setuptools ];
optional-dependencies = {
CACHE = [ python-memcached ];
};
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "cymruwhois" ];
disabledTests = [
# AssertionError
"test_doctest"
];
disabledTestPaths = [
# £Failed: 'yield' keyword is allowed in fixtures, but not in tests (test_common)
"tests/test_common_lookups.py"
];
meta = {
description = "Python client for the whois.cymru.com service";
homepage = "https://github.com/JustinAzoff/python-cymruwhois";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}