2021-01-05 17:05:55 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
|
|
|
, aiodns
|
|
|
|
, tldextract
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "asyncwhois";
|
2021-01-09 10:05:03 +00:00
|
|
|
version = "0.2.2";
|
2021-01-05 17:05:55 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-01-09 10:05:03 +00:00
|
|
|
sha256 = "59ed35fbe646491b6c3e1dcf6db9b4870c3d44c6c023a1c3badd6226551d7b7e";
|
2021-01-05 17:05:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|