1{ lib 2, buildPythonPackage 3, fetchPypi 4, future 5, nose 6, pytestCheckHook 7, simplejson 8}: 9 10buildPythonPackage rec { 11 pname = "python-whois"; 12 version = "0.8.0"; 13 14 src = fetchPypi { 15 inherit pname version; 16 sha256 = "sha256-3TNtNRfqzip2iUBtt7uWraPF50MnQjFRru4+ZCJfYiA="; 17 }; 18 19 propagatedBuildInputs = [ future ]; 20 21 checkInputs = [ 22 nose 23 pytestCheckHook 24 simplejson 25 ]; 26 27 # Exclude tests that require network access 28 disabledTests = [ 29 "test_dk_parse" 30 "test_ipv4" 31 "test_ipv6" 32 ]; 33 pythonImportsCheck = [ "whois" ]; 34 35 meta = with lib; { 36 description = "Python module to produce parsed WHOIS data"; 37 homepage = "https://github.com/richardpenman/whois"; 38 license = with licenses; [ mit ]; 39 maintainers = with maintainers; [ fab ]; 40 }; 41}