1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, inetutils 5, pythonOlder 6}: 7 8buildPythonPackage rec { 9 pname = "whois"; 10 version = "0.9.27"; 11 format = "setuptools"; 12 13 disabled = pythonOlder "3.7"; 14 15 src = fetchFromGitHub { 16 owner = "DannyCork"; 17 repo = "python-whois"; 18 rev = "refs/tags/${version}"; 19 hash = "sha256-hs4iCv2OqwLhTj2H4oijRYIyqXrHmewqgnMtU+3Uup0="; 20 }; 21 22 propagatedBuildInputs = [ 23 # whois is needed 24 inetutils 25 ]; 26 27 # tests require network access 28 doCheck = false; 29 30 pythonImportsCheck = [ 31 "whois" 32 ]; 33 34 meta = with lib; { 35 description = "Python module/library for retrieving WHOIS information"; 36 homepage = "https://github.com/DannyCork/python-whois/"; 37 changelog = "https://github.com/DannyCork/python-whois/releases/tag/${version}"; 38 license = with licenses; [ mit ]; 39 maintainers = with maintainers; [ fab ]; 40 }; 41}