depot/third_party/nixpkgs/pkgs/development/python-modules/python-whois/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

54 lines
1 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pynose,
pytestCheckHook,
python-dateutil,
pythonOlder,
setuptools,
simplejson,
}:
buildPythonPackage rec {
pname = "python-whois";
version = "0.9.4";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "python_whois";
inherit version;
hash = "sha256-d7xzR7+BXWXM0ZZxHCmDdlLwdYWu2tPDwE3YhWUf16c=";
};
build-system = [ setuptools ];
dependencies = [ python-dateutil ];
nativeCheckInputs = [
pynose
pytestCheckHook
simplejson
];
disabledTests = [
# Exclude tests that require network access
"test_dk_parse"
"test_ipv4"
"test_ipv6"
"test_choose_server"
"test_simple_ascii_domain"
"test_simple_unicode_domain"
];
pythonImportsCheck = [ "whois" ];
meta = with lib; {
description = "Python module to produce parsed WHOIS data";
homepage = "https://github.com/richardpenman/whois";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}