{ lib, buildPythonPackage, fetchPypi, pytestCheckHook, python-dateutil, setuptools, simplejson, }: buildPythonPackage rec { pname = "python-whois"; version = "0.9.6"; pyproject = true; src = fetchPypi { pname = "python_whois"; inherit version; hash = "sha256-Lm3nttcOMFqF9IWc0XeB7j8No6AqjpTyPLTNzS5AC/o="; }; build-system = [ setuptools ]; dependencies = [ python-dateutil ]; nativeCheckInputs = [ pytestCheckHook simplejson ]; disabledTests = [ # Exclude tests that require network access "test_dk_parse" "test_ipv4" "test_ipv6" "test_choose_server" "test_simple_ascii_domain" "test_simple_unicode_domain" ]; pythonImportsCheck = [ "whois" ]; meta = { description = "Python module to produce parsed WHOIS data"; homepage = "https://github.com/richardpenman/whois"; license = with lib.licenses; [ mit ]; maintainers = with lib.maintainers; [ fab ]; }; }