python312Packages.asyncwhois: refactor

This commit is contained in:
Fabian Affolter 2024-05-14 08:29:06 +02:00
parent ea710f5ea5
commit 601c840b9d

View File

@ -25,11 +25,16 @@ buildPythonPackage rec {
hash = "sha256-ESVgK4Z26OAamdHPEVxysnlJ0rEUlr8KNd24fawHuEg=";
};
nativeBuildInputs = [
postPatch = ''
substituteInPlace setup.py \
--replace-fail "python-socks[asyncio]" "python-socks"
'';
build-system = [
setuptools
];
propagatedBuildInputs = [
dependencies = [
python-socks
tldextract
whodap
@ -41,11 +46,6 @@ buildPythonPackage rec {
pytestCheckHook
];
postPatch = ''
substituteInPlace setup.py \
--replace-fail "python-socks[asyncio]" "python-socks"
'';
disabledTests = [
# Tests require network access
"test_pywhois_aio_get_hostname_from_ip"