3
0
Fork 0
forked from mirrors/nixpkgs

python311Packages.asyncwhois: refactor

This commit is contained in:
Fabian Affolter 2024-02-12 08:28:40 +01:00
parent 864ba40b39
commit 2548a20041

View file

@ -6,6 +6,7 @@
, pytestCheckHook
, python-socks
, pythonOlder
, setuptools
, tldextract
, whodap
}:
@ -13,9 +14,9 @@
buildPythonPackage rec {
pname = "asyncwhois";
version = "1.1.0";
format = "setuptools";
pyproject = true;
disabled = pythonOlder "3.7";
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "pogzyb";
@ -24,6 +25,10 @@ buildPythonPackage rec {
hash = "sha256-rJwJhSOFrZZ3WXEZmPMfdosBBW/R5/PMqs0QLnsPMoI=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
python-socks
tldextract
@ -38,7 +43,7 @@ buildPythonPackage rec {
postPatch = ''
substituteInPlace setup.py \
--replace "python-socks[asyncio]" "python-socks"
--replace-fail "python-socks[asyncio]" "python-socks"
'';
disabledTests = [