2021-01-05 17:05:55 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, inetutils
|
2022-02-10 20:34:41 +00:00
|
|
|
, pythonOlder
|
2021-01-05 17:05:55 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "whois";
|
2022-12-28 21:21:41 +00:00
|
|
|
version = "0.9.19";
|
2022-02-10 20:34:41 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-01-05 17:05:55 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "DannyCork";
|
|
|
|
repo = "python-whois";
|
2022-06-16 17:23:12 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2022-12-28 21:21:41 +00:00
|
|
|
hash = "sha256-b8OZppynDT0MCwH4ic+wMJzWqyUzsigzxD0yYGfgJmI=";
|
2021-01-05 17:05:55 +00:00
|
|
|
};
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
# whois is needed
|
|
|
|
inetutils
|
|
|
|
];
|
2021-01-05 17:05:55 +00:00
|
|
|
|
|
|
|
# tests require network access
|
|
|
|
doCheck = false;
|
2022-02-10 20:34:41 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"whois"
|
|
|
|
];
|
2021-01-05 17:05:55 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python module/library for retrieving WHOIS information";
|
|
|
|
homepage = "https://github.com/DannyCork/python-whois/";
|
2022-12-28 21:21:41 +00:00
|
|
|
changelog = "https://github.com/DannyCork/python-whois/releases/tag/${version}";
|
2021-01-05 17:05:55 +00:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|