python311Packages.python-whois: refactor

This commit is contained in:
Fabian Affolter 2024-03-29 10:39:29 +01:00
parent d8fe5e6c92
commit 2a4a34fcf9
1 changed files with 15 additions and 3 deletions

View File

@ -4,20 +4,30 @@
, future
, nose
, pytestCheckHook
, pythonOlder
, setuptools
, simplejson
}:
buildPythonPackage rec {
pname = "python-whois";
version = "0.8.0";
format = "setuptools";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-3TNtNRfqzip2iUBtt7uWraPF50MnQjFRru4+ZCJfYiA=";
};
propagatedBuildInputs = [ future ];
build-system = [
setuptools
];
dependencies = [
future
];
nativeCheckInputs = [
nose
@ -31,7 +41,9 @@ buildPythonPackage rec {
"test_ipv4"
"test_ipv6"
];
pythonImportsCheck = [ "whois" ];
pythonImportsCheck = [
"whois"
];
meta = with lib; {
description = "Python module to produce parsed WHOIS data";