nixpkgs/pkgs/tools/admin/lexicon/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

65 lines
1.1 KiB
Nix
Raw Normal View History

2020-01-25 12:45:27 +00:00
{ lib
2020-10-04 15:51:17 +00:00
, python3
2020-01-25 12:45:27 +00:00
, fetchFromGitHub
}:
2022-03-11 22:49:00 +00:00
with python3.pkgs;
2020-01-25 12:45:27 +00:00
2020-10-04 15:51:17 +00:00
buildPythonApplication rec {
pname = "lexicon";
2022-03-11 22:49:00 +00:00
version = "3.9.4";
2020-10-04 15:56:24 +00:00
format = "pyproject";
2020-01-25 12:45:27 +00:00
src = fetchFromGitHub {
owner = "AnalogJ";
repo = pname;
rev = "v${version}";
2022-03-11 22:49:00 +00:00
hash = "sha256-TySgIxBEl2RolndAkEN4vCIDKaI48vrh2ocd+CTn7Ow=";
2020-01-25 12:45:27 +00:00
};
2020-10-04 15:56:24 +00:00
nativeBuildInputs = [
2022-01-10 08:28:35 +00:00
poetry-core
2020-10-04 15:56:24 +00:00
];
2020-10-04 15:51:17 +00:00
propagatedBuildInputs = [
beautifulsoup4
boto3
cryptography
dnspython
future
localzone
2022-01-10 08:28:35 +00:00
oci
2020-10-04 15:51:17 +00:00
pynamecheap
pyyaml
requests
softlayer
tldextract
transip
xmltodict
zeep
];
checkInputs = [
mock
2022-01-10 08:28:35 +00:00
pytestCheckHook
pytest-xdist
2020-10-04 15:51:17 +00:00
vcrpy
];
2022-01-10 08:28:35 +00:00
disabledTestPaths = [
# Tests require network access
"lexicon/tests/providers/test_auto.py"
];
pythonImportsCheck = [
"lexicon"
];
2020-10-04 15:51:17 +00:00
2020-01-25 12:45:27 +00:00
meta = with lib; {
2022-01-10 08:28:35 +00:00
description = "Manipulate DNS records of various DNS providers in a standardized way";
homepage = "https://github.com/AnalogJ/lexicon";
2020-01-25 12:45:27 +00:00
license = licenses.mit;
2022-01-10 08:28:35 +00:00
maintainers = with maintainers; [ flyfloh ];
2020-01-25 12:45:27 +00:00
};
}