2021-01-05 17:05:55 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, inetutils
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "whois";
|
2021-04-25 03:57:28 +00:00
|
|
|
version = "0.9.13";
|
2021-01-05 17:05:55 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "DannyCork";
|
|
|
|
repo = "python-whois";
|
|
|
|
rev = version;
|
2021-04-25 03:57:28 +00:00
|
|
|
sha256 = "0y2sfs6nkr2j2crrn81wkfdzn9aphb3iaddya5zd2midlgdqq7bw";
|
2021-01-05 17:05:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# 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 ];
|
|
|
|
};
|
|
|
|
}
|