about summary refs log tree commit diff
path: root/pkgs/development/python-modules/python-whois/default.nix
blob: 724884fe73b8d2adfed940645195311b1f389d9b (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
32
33
34
35
36
37
38
39
40
41
{ lib
, buildPythonPackage
, fetchPypi
, future
, nose
, pytestCheckHook
, simplejson
}:

buildPythonPackage rec {
  pname = "python-whois";
  version = "0.8.0";

  src = fetchPypi {
    inherit pname version;
    sha256 = "sha256-3TNtNRfqzip2iUBtt7uWraPF50MnQjFRru4+ZCJfYiA=";
  };

  propagatedBuildInputs = [ future ];

  nativeCheckInputs = [
    nose
    pytestCheckHook
    simplejson
  ];

  # Exclude tests that require network access
  disabledTests = [
    "test_dk_parse"
    "test_ipv4"
    "test_ipv6"
  ];
  pythonImportsCheck = [ "whois" ];

  meta = with lib; {
    description = "Python module to produce parsed WHOIS data";
    homepage = "https://github.com/richardpenman/whois";
    license = with licenses; [ mit ];
    maintainers = with maintainers; [ fab ];
  };
}