python3Packages.whois: disable on older Python releases

This commit is contained in:
Fabian Affolter 2022-01-21 08:24:14 +01:00 committed by Martin Weinelt
parent c237991991
commit fc85bb1c2a

View File

@ -2,11 +2,15 @@
, buildPythonPackage
, fetchFromGitHub
, inetutils
, pythonOlder
}:
buildPythonPackage rec {
pname = "whois";
version = "0.9.14";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "DannyCork";
@ -15,12 +19,17 @@ buildPythonPackage rec {
sha256 = "1df4r2pr356y1c2ys6pzdl93fmx9ci4y75xphc95xn27zvqbpvix";
};
# whois is needed
propagatedBuildInputs = [ inetutils ];
propagatedBuildInputs = [
# whois is needed
inetutils
];
# tests require network access
doCheck = false;
pythonImportsCheck = [ "whois" ];
pythonImportsCheck = [
"whois"
];
meta = with lib; {
description = "Python module/library for retrieving WHOIS information";