5c370c0b2a
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
40 lines
829 B
Nix
40 lines
829 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pycares,
|
|
pythonOlder,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aiodns";
|
|
version = "3.2.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "saghul";
|
|
repo = "aiodns";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-aXae9/x0HVp4KqydCf5/+p5PlSKUQ5cE3iVeD08rtf0=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [ pycares ];
|
|
|
|
# Could not contact DNS servers
|
|
doCheck = false;
|
|
|
|
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 ];
|
|
};
|
|
}
|