at 23.05-pre 800 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, inetutils 5, pythonOlder 6}: 7 8buildPythonPackage rec { 9 pname = "whois"; 10 version = "0.9.18"; 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 sha256 = "sha256-15oa7E33VQMPtI2LJ0XVKd42m9BY9jZLL3XGXpAhv/A="; 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 license = with licenses; [ mit ]; 38 maintainers = with maintainers; [ fab ]; 39 }; 40}