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