nixpkgs/pkgs/development/python-modules/aiodns/default.nix

39 lines
749 B
Nix
Raw Normal View History

2021-05-31 13:51:55 +00:00
{ lib
, buildPythonPackage
, fetchFromGitHub
, pycares
, pythonOlder
, typing
}:
buildPythonPackage rec {
pname = "aiodns";
2021-05-31 13:51:55 +00:00
version = "3.0.0";
disabled = pythonOlder "3.6";
2021-05-31 13:51:55 +00:00
src = fetchFromGitHub {
owner = "saghul";
repo = pname;
rev = "aiodns-${version}";
sha256 = "1i91a43gsq222r8212jn4m6bxc3fl04z1mf2h7s39nqywxkggvlp";
};
2021-05-31 13:51:55 +00:00
propagatedBuildInputs = [
pycares
] ++ lib.optional (pythonOlder "3.7") [
typing
];
2021-05-31 13:51:55 +00:00
# Could not contact DNS servers
doCheck = false;
2021-05-31 13:51:55 +00:00
pythonImportsCheck = [ "aiodns" ];
meta = with lib; {
2021-05-31 13:51:55 +00:00
description = "Simple DNS resolver for asyncio";
homepage = "https://github.com/saghul/aiodns";
license = licenses.mit;
2021-05-31 13:51:55 +00:00
maintainers = with maintainers; [ fab ];
};
}