diff --git a/pkgs/development/python-modules/asyncwhois/default.nix b/pkgs/development/python-modules/asyncwhois/default.nix index 4bb201b251e9..a607fe965827 100644 --- a/pkgs/development/python-modules/asyncwhois/default.nix +++ b/pkgs/development/python-modules/asyncwhois/default.nix @@ -1,9 +1,9 @@ { lib -, aiodns , asynctest , buildPythonPackage , fetchFromGitHub , pytestCheckHook +, python-socks , pythonOlder , tldextract , whodap @@ -11,7 +11,8 @@ buildPythonPackage rec { pname = "asyncwhois"; - version = "0.4.1"; + version = "1.0.0"; + format = "setuptools"; disabled = pythonOlder "3.7"; @@ -19,11 +20,11 @@ buildPythonPackage rec { owner = "pogzyb"; repo = pname; rev = "v${version}"; - sha256 = "sha256-mKKN2IuveOE+3mZGS5LFa15lJPA9y7KgLd0FoRuEMH0="; + hash = "sha256-9tSGfF/Ezuya4pEyr1XolWXvSO/F/UrobRVlyHITNTU="; }; propagatedBuildInputs = [ - aiodns + python-socks tldextract whodap ]; @@ -33,8 +34,13 @@ buildPythonPackage rec { pytestCheckHook ]; - # Disable tests that require network access + postPatch = '' + substituteInPlace setup.py \ + --replace "python-socks[asyncio]" "python-socks" + ''; + disabledTests = [ + # Tests require network access "test_pywhois_aio_get_hostname_from_ip" "test_pywhois_get_hostname_from_ip" "test_pywhois_aio_lookup_ipv4" @@ -44,9 +50,13 @@ buildPythonPackage rec { "test_from_whois_cmd" "test_get_hostname_from_ip" "test_whois_query_run" + "test_whois_query_create_connection" + "test_whois_query_send_and_recv" ]; - pythonImportsCheck = [ "asyncwhois" ]; + pythonImportsCheck = [ + "asyncwhois" + ]; meta = with lib; { description = "Python module for retrieving WHOIS information";