mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 14:43:37 +00:00
python3Packages.whois: disable on older Python releases
This commit is contained in:
parent
c237991991
commit
fc85bb1c2a
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user