1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, inetutils
5}:
6
7buildPythonPackage rec {
8 pname = "whois";
9 version = "0.9.13";
10
11 src = fetchFromGitHub {
12 owner = "DannyCork";
13 repo = "python-whois";
14 rev = version;
15 sha256 = "0y2sfs6nkr2j2crrn81wkfdzn9aphb3iaddya5zd2midlgdqq7bw";
16 };
17
18 # whois is needed
19 propagatedBuildInputs = [ inetutils ];
20
21 # tests require network access
22 doCheck = false;
23 pythonImportsCheck = [ "whois" ];
24
25 meta = with lib; {
26 description = "Python module/library for retrieving WHOIS information";
27 homepage = "https://github.com/DannyCork/python-whois/";
28 license = with licenses; [ mit ];
29 maintainers = with maintainers; [ fab ];
30 };
31}