about summary refs log tree commit diff
path: root/pkgs/tools/admin/lexicon
diff options
context:
space:
mode:
authorFlorian <flo@halbmastwurf.de>2020-01-25 13:45:27 +0100
committerFrederik Rietdijk <freddyrietdijk@fridh.nl>2020-02-09 16:57:57 +0100
commit50ad81d76bbc1c3de758a3e1074ff35c941062c3 (patch)
tree7a4b79764f7154e5043f5fa74082864dffb07150 /pkgs/tools/admin/lexicon
parenta61470621978ebb7b33876cfd745937200c5a83e (diff)
lexicon: init at 3.3.17
Diffstat (limited to 'pkgs/tools/admin/lexicon')
-rw-r--r--pkgs/tools/admin/lexicon/default.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/tools/admin/lexicon/default.nix b/pkgs/tools/admin/lexicon/default.nix
new file mode 100644
index 0000000000000..4f6db4169a15b
--- /dev/null
+++ b/pkgs/tools/admin/lexicon/default.nix
@@ -0,0 +1,31 @@
+{ lib
+, python3Packages
+, fetchFromGitHub
+}:
+
+python3Packages.buildPythonApplication rec {
+  pname = "lexicon";
+  version = "3.3.17";
+
+  propagatedBuildInputs = with python3Packages; [ requests tldextract future cryptography pyyaml boto3 zeep xmltodict beautifulsoup4 dnspython pynamecheap softlayer transip localzone ];
+
+  checkInputs = with python3Packages; [ pytest pytestcov pytest_xdist vcrpy mock ];
+
+  checkPhase = ''
+    pytest --ignore=lexicon/tests/providers/test_auto.py
+  '';
+
+  src = fetchFromGitHub {
+    owner = "AnalogJ";
+    repo = pname;
+    rev = "v${version}";
+    sha256 = "1wrsw759am6yp2m9b34iv82m371df3ssp2vhdjr18ys3xk7dvj89";
+  };
+
+  meta = with lib; {
+    description = "Manipulate DNS records on various DNS providers in a standardized way.";
+    homepage = https://github.com/AnalogJ/lexicon;
+    maintainers = with maintainers; [ flyfloh ];
+    license = licenses.mit;
+  };
+}