python311Packages.aiodns: refactor

This commit is contained in:
Fabian Affolter 2023-10-08 09:18:11 +02:00 committed by Martin Weinelt
parent 1c1247c30d
commit e62245cea0
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

@ -4,7 +4,7 @@
, pycares
, pythonOlder
, setuptools
, typing
}:
buildPythonPackage rec {
@ -16,7 +16,7 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "saghul";
repo = pname;
repo = "aiodns";
rev = "refs/tags/v${version}";
sha256 = "sha256-JZS53kICsrXDot3CKjG30AOjkYycKpMJvC9yS3c1v5Q=";
};
@ -27,18 +27,19 @@ buildPythonPackage rec {
propagatedBuildInputs = [
pycares
] ++ lib.optionals (pythonOlder "3.7") [
typing
];
# Could not contact DNS servers
doCheck = false;
pythonImportsCheck = [ "aiodns" ];
pythonImportsCheck = [
"aiodns"
];
meta = with lib; {
description = "Simple DNS resolver for asyncio";
homepage = "https://github.com/saghul/aiodns";
changelog = "https://github.com/saghul/aiodns/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};