2021-01-04 11:17:32 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, inetutils
|
2022-01-21 07:24:14 +00:00
|
|
|
, pythonOlder
|
2021-01-04 11:17:32 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "whois";
|
2022-01-14 00:59:09 +00:00
|
|
|
version = "0.9.14";
|
2022-01-21 07:24:14 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-01-04 11:17:32 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "DannyCork";
|
|
|
|
repo = "python-whois";
|
|
|
|
rev = version;
|
2022-01-14 00:59:09 +00:00
|
|
|
sha256 = "1df4r2pr356y1c2ys6pzdl93fmx9ci4y75xphc95xn27zvqbpvix";
|
2021-01-04 11:17:32 +00:00
|
|
|
};
|
|
|
|
|
2022-01-21 07:24:14 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
# whois is needed
|
|
|
|
inetutils
|
|
|
|
];
|
2021-01-04 11:17:32 +00:00
|
|
|
|
|
|
|
# tests require network access
|
|
|
|
doCheck = false;
|
2022-01-21 07:24:14 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"whois"
|
|
|
|
];
|
2021-01-04 11:17:32 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|