From 011f1c739647c0b6947d028c217e4a98466c26d2 Mon Sep 17 00:00:00 2001 From: Kevin Cox Date: Sat, 6 Oct 2018 11:33:47 +0100 Subject: [PATCH] sewer: init at 0.6.0 sewer is an ACME client which supports DNS challenges with support for various DNS servers. --- pkgs/tools/admin/sewer/default.nix | 26 ++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 28 insertions(+) create mode 100644 pkgs/tools/admin/sewer/default.nix diff --git a/pkgs/tools/admin/sewer/default.nix b/pkgs/tools/admin/sewer/default.nix new file mode 100644 index 000000000000..5410d0c833df --- /dev/null +++ b/pkgs/tools/admin/sewer/default.nix @@ -0,0 +1,26 @@ +{ stdenv, python3Packages }: + +python3Packages.buildPythonApplication rec { + pname = "sewer"; + version = "0.6.0"; + + src = python3Packages.fetchPypi { + inherit pname version; + sha256 = "180slmc2zk4mvjqp25ks0j8kd63ai4y77ds5icm7qd7av865rryp"; + }; + + propagatedBuildInputs = with python3Packages; [ pyopenssl requests tldextract ]; + + postPatch = '' + # The README has non-ascii characters which makes setup.py crash. + sed -i 's/[\d128-\d255]//g' README.md + ''; + + meta = with stdenv.lib; { + homepage = https://github.com/komuw/sewer; + description = "ACME client"; + license = licenses.mit; + maintainers = with maintainers; [ kevincox ]; + platforms = platforms.linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index f0f2356264a3..3f2b04c4cfd7 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5214,6 +5214,8 @@ with pkgs; seqdiag = with python3Packages; toPythonApplication seqdiag; + sewer = callPackage ../tools/admin/sewer { }; + screenfetch = callPackage ../tools/misc/screenfetch { }; sg3_utils = callPackage ../tools/system/sg3_utils { };