about summary refs log tree commit diff
path: root/pkgs
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
parenta61470621978ebb7b33876cfd745937200c5a83e (diff)
downloadnixlib-50ad81d76bbc1c3de758a3e1074ff35c941062c3.tar
nixlib-50ad81d76bbc1c3de758a3e1074ff35c941062c3.tar.gz
nixlib-50ad81d76bbc1c3de758a3e1074ff35c941062c3.tar.bz2
nixlib-50ad81d76bbc1c3de758a3e1074ff35c941062c3.tar.lz
nixlib-50ad81d76bbc1c3de758a3e1074ff35c941062c3.tar.xz
nixlib-50ad81d76bbc1c3de758a3e1074ff35c941062c3.tar.zst
nixlib-50ad81d76bbc1c3de758a3e1074ff35c941062c3.zip
lexicon: init at 3.3.17
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/tools/admin/lexicon/default.nix31
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/tools/admin/lexicon/default.nix b/pkgs/tools/admin/lexicon/default.nix
new file mode 100644
index 000000000000..4f6db4169a15
--- /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;
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index ef0d516acf17..144999e31d58 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -1907,6 +1907,8 @@ in
 
   lepton = callPackage ../tools/graphics/lepton { };
 
+  lexicon = callPackage ../tools/admin/lexicon { };
+
   lief = callPackage ../development/libraries/lief {};
 
   libndtypes = callPackage ../development/libraries/libndtypes { };