mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 03:34:58 +00:00
python311Packages.aiodns: refactor
This commit is contained in:
parent
1c1247c30d
commit
e62245cea0
@ -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 ];
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user