nixpkgs/pkgs/development/python-modules/aiodns/default.nix
2023-12-20 20:46:04 +01:00

46 lines
856 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pycares
, pythonOlder
, setuptools
}:
buildPythonPackage rec {
pname = "aiodns";
version = "3.1.1";
pyproject = true;
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "saghul";
repo = "aiodns";
rev = "refs/tags/v${version}";
sha256 = "sha256-JZS53kICsrXDot3CKjG30AOjkYycKpMJvC9yS3c1v5Q=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
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 ];
};
}