1{ lib 2, aiodns 3, asynctest 4, buildPythonPackage 5, fetchFromGitHub 6, pytestCheckHook 7, pythonOlder 8, tldextract 9, whodap 10}: 11 12buildPythonPackage rec { 13 pname = "asyncwhois"; 14 version = "0.4.1"; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "pogzyb"; 20 repo = pname; 21 rev = "v${version}"; 22 sha256 = "sha256-mKKN2IuveOE+3mZGS5LFa15lJPA9y7KgLd0FoRuEMH0="; 23 }; 24 25 propagatedBuildInputs = [ 26 aiodns 27 tldextract 28 whodap 29 ]; 30 31 checkInputs = [ 32 asynctest 33 pytestCheckHook 34 ]; 35 36 # Disable tests that require network access 37 disabledTests = [ 38 "test_pywhois_aio_get_hostname_from_ip" 39 "test_pywhois_get_hostname_from_ip" 40 "test_pywhois_aio_lookup_ipv4" 41 "test_not_found" 42 "test_aio_from_whois_cmd" 43 "test_aio_get_hostname_from_ip" 44 "test_from_whois_cmd" 45 "test_get_hostname_from_ip" 46 "test_whois_query_run" 47 ]; 48 49 pythonImportsCheck = [ "asyncwhois" ]; 50 51 meta = with lib; { 52 description = "Python module for retrieving WHOIS information"; 53 homepage = "https://github.com/pogzyb/asyncwhois"; 54 license = with licenses; [ asl20 ]; 55 maintainers = with maintainers; [ fab ]; 56 }; 57}