a3d4720129
GitOrigin-RevId: e182da8622a354d44c39b3d7a542dc12cd7baa5f
41 lines
883 B
Nix
41 lines
883 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, inetutils
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "whois";
|
|
version = "0.9.19";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "DannyCork";
|
|
repo = "python-whois";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-b8OZppynDT0MCwH4ic+wMJzWqyUzsigzxD0yYGfgJmI=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
# whois is needed
|
|
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/";
|
|
changelog = "https://github.com/DannyCork/python-whois/releases/tag/${version}";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|