about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/whois/default.nix
blob: ef69283e6dbf3f4fb2d4d43f5d71a7dc924b923d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ lib
, buildPythonPackage
, fetchFromGitHub
, inetutils
}:

buildPythonPackage rec {
  pname = "whois";
  version = "0.9.13";

  src = fetchFromGitHub {
    owner = "DannyCork";
    repo = "python-whois";
    rev = version;
    sha256 = "0y2sfs6nkr2j2crrn81wkfdzn9aphb3iaddya5zd2midlgdqq7bw";
  };

  # whois is needed
  propagatedBuildInputs = [ inetutils ];

  # tests require network access
  doCheck = false;
  pythonImportsCheck = [ "whois" ];

  meta = with lib; {
    description = "Python module/library for retrieving WHOIS information";
    homepage = "https://github.com/DannyCork/python-whois/";
    license = with licenses; [ mit ];
    maintainers = with maintainers; [ fab ];
  };
}