Files
nixpkgs/pkgs/development/python-modules/aiodns/default.nix
T
2023-12-20 20:17:13 +01:00

46 lines
832 B
Nix

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