1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pytestCheckHook, 6 python-dateutil, 7 pythonOlder, 8 setuptools, 9 simplejson, 10}: 11 12buildPythonPackage rec { 13 pname = "python-whois"; 14 version = "0.9.5"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchPypi { 20 pname = "python_whois"; 21 inherit version; 22 hash = "sha256-GJaMIUhHUvzEuaXwr0d+9rjcLou38b1cM4MUmcDdQco="; 23 }; 24 25 build-system = [ setuptools ]; 26 27 dependencies = [ python-dateutil ]; 28 29 nativeCheckInputs = [ 30 pytestCheckHook 31 simplejson 32 ]; 33 34 disabledTests = [ 35 # Exclude tests that require network access 36 "test_dk_parse" 37 "test_ipv4" 38 "test_ipv6" 39 "test_choose_server" 40 "test_simple_ascii_domain" 41 "test_simple_unicode_domain" 42 ]; 43 44 pythonImportsCheck = [ "whois" ]; 45 46 meta = with lib; { 47 description = "Python module to produce parsed WHOIS data"; 48 homepage = "https://github.com/richardpenman/whois"; 49 license = with licenses; [ mit ]; 50 maintainers = with maintainers; [ fab ]; 51 }; 52}