2018-08-05 01:17:38 +02:00
|
|
|
{ stdenv, python3Packages, bash }:
|
2018-08-04 21:56:55 +02:00
|
|
|
|
2018-08-05 01:17:38 +02:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2017-02-20 12:47:46 +01:00
|
|
|
pname = "simp_le-client";
|
2019-10-17 18:07:10 +02:00
|
|
|
version = "0.16.0";
|
2015-12-05 08:43:56 +01:00
|
|
|
|
2018-08-05 01:17:38 +02:00
|
|
|
src = python3Packages.fetchPypi {
|
2017-02-20 12:47:46 +01:00
|
|
|
inherit pname version;
|
2019-10-17 18:07:10 +02:00
|
|
|
sha256 = "17azqlb1xsnh9p0m75apb19j7pramgj00cf5k6fwzz2zqz0x0hpp";
|
2015-12-05 08:43:56 +01:00
|
|
|
};
|
|
|
|
|
2018-03-21 10:14:52 +01:00
|
|
|
postPatch = ''
|
2018-08-04 21:56:55 +02:00
|
|
|
# drop upper bound of idna requirement
|
|
|
|
sed -ri "s/'(idna)<[^']+'/'\1'/" setup.py
|
2018-03-21 10:14:52 +01:00
|
|
|
substituteInPlace simp_le.py \
|
|
|
|
--replace "/bin/sh" "${bash}/bin/sh"
|
|
|
|
'';
|
|
|
|
|
2017-02-20 12:47:46 +01:00
|
|
|
checkPhase = ''
|
|
|
|
$out/bin/simp_le --test
|
|
|
|
'';
|
|
|
|
|
2018-08-05 01:17:38 +02:00
|
|
|
propagatedBuildInputs = with python3Packages; [ acme setuptools_scm josepy idna ];
|
2015-12-05 08:43:56 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = https://github.com/zenhack/simp_le;
|
2015-12-05 08:43:56 +01:00
|
|
|
description = "Simple Let's Encrypt client";
|
|
|
|
license = licenses.gpl3;
|
2018-03-20 22:26:30 +01:00
|
|
|
maintainers = with maintainers; [ gebner makefu ];
|
2018-08-04 23:21:19 +02:00
|
|
|
platforms = platforms.linux;
|
2015-12-05 08:43:56 +01:00
|
|
|
};
|
|
|
|
}
|