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