python311Packages.python-whois: refactor

This commit is contained in:
Fabian Affolter 2024-03-29 10:39:29 +01:00
parent d8fe5e6c92
commit 2a4a34fcf9

View File

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