depot/third_party/nixpkgs/pkgs/development/python-modules/aiodns/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

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 ];
};
}