1{ stdenv, python3Packages, bash }:
2
3python3Packages.buildPythonApplication rec {
4 pname = "simp_le-client";
5 version = "0.9.0";
6
7 src = python3Packages.fetchPypi {
8 inherit pname version;
9 sha256 = "1yxfznd78zkg2f657v520zj5w4dvq5n594d0kpm4lra8xnpg4zcv";
10 };
11
12 postPatch = ''
13 # drop upper bound of acme requirement
14 sed -ri "s/'(acme>=[^,]+),<[^']+'/'\1'/" setup.py
15 # drop upper bound of idna requirement
16 sed -ri "s/'(idna)<[^']+'/'\1'/" setup.py
17 substituteInPlace simp_le.py \
18 --replace "/bin/sh" "${bash}/bin/sh"
19 '';
20
21 checkPhase = ''
22 $out/bin/simp_le --test
23 '';
24
25 propagatedBuildInputs = with python3Packages; [ acme setuptools_scm josepy idna ];
26
27 meta = with stdenv.lib; {
28 homepage = https://github.com/zenhack/simp_le;
29 description = "Simple Let's Encrypt client";
30 license = licenses.gpl3;
31 maintainers = with maintainers; [ gebner makefu ];
32 platforms = platforms.linux;
33 };
34}