about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/asyncwhois/default.nix
blob: 077c5078caaeb00dba6e7809121a5e59a6a294d6 (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
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, aiodns
, tldextract
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "asyncwhois";
  version = "0.2.3";
  disabled = pythonOlder "3.6";

  src = fetchPypi {
    inherit pname version;
    sha256 = "95df90d5be581e3c69398abc6a3ec69a4e568852d9d6df4582bfcc0e22ffb3bb";
  };

  propagatedBuildInputs = [
    aiodns
    tldextract
  ];

  # tests are only present at GitHub but not the released source tarballs
  # https://github.com/pogzyb/asyncwhois/issues/10
  doCheck = false;
  pythonImportsCheck = [ "asyncwhois" ];

  meta = with lib; {
    description = "Python module for retrieving WHOIS information";
    homepage = "https://github.com/pogzyb/asyncwhois";
    license = with licenses; [ asl20 ];
    maintainers = with maintainers; [ fab ];
  };
}