Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / python-whois / default.nix
blob0a52e0b25c3e5a38522086a3e896b03ef8757fee
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , future
5 , nose
6 , pytestCheckHook
7 , simplejson
8 }:
10 buildPythonPackage rec {
11   pname = "python-whois";
12   version = "0.8.0";
14   src = fetchPypi {
15     inherit pname version;
16     hash = "sha256-3TNtNRfqzip2iUBtt7uWraPF50MnQjFRru4+ZCJfYiA=";
17   };
19   propagatedBuildInputs = [ future ];
21   nativeCheckInputs = [
22     nose
23     pytestCheckHook
24     simplejson
25   ];
27   # Exclude tests that require network access
28   disabledTests = [
29     "test_dk_parse"
30     "test_ipv4"
31     "test_ipv6"
32   ];
33   pythonImportsCheck = [ "whois" ];
35   meta = with lib; {
36     description = "Python module to produce parsed WHOIS data";
37     homepage = "https://github.com/richardpenman/whois";
38     license = with licenses; [ mit ];
39     maintainers = with maintainers; [ fab ];
40   };