587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
58 lines
1 KiB
Nix
58 lines
1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pynose
|
|
, pytestCheckHook
|
|
, python-dateutil
|
|
, pythonOlder
|
|
, setuptools
|
|
, simplejson
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-whois";
|
|
version = "0.9.3";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-jdoscMD4nw+PxIpCNweJMyv/9nm1+kYgSIhBUdJso84=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|