2018-03-21 10:14:52 +01:00
|
|
|
{ stdenv, fetchFromGitHub, fetchpatch, pythonPackages, bash }:
|
2018-03-20 22:26:30 +01:00
|
|
|
|
2016-02-19 13:12:11 +01:00
|
|
|
pythonPackages.buildPythonApplication rec {
|
2017-02-20 12:47:46 +01:00
|
|
|
pname = "simp_le-client";
|
2018-03-20 22:26:30 +01:00
|
|
|
version = "0.8.0";
|
2015-12-05 08:43:56 +01:00
|
|
|
|
2017-02-20 12:47:46 +01:00
|
|
|
src = pythonPackages.fetchPypi {
|
|
|
|
inherit pname version;
|
2018-03-20 22:26:30 +01:00
|
|
|
sha256 = "0nv9mm99rm8i9flgfgwvmajbsxb5rm162nfxlq3wk66bbbyr6y1i";
|
2015-12-05 08:43:56 +01:00
|
|
|
};
|
|
|
|
|
2018-03-21 10:14:52 +01:00
|
|
|
postPatch = ''
|
2018-04-20 19:40:38 +02:00
|
|
|
# drop upper bound of acme requirement
|
|
|
|
sed -ri "s/'(acme>=[^,]+),<[^']+'/'\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-03-20 22:26:30 +01:00
|
|
|
propagatedBuildInputs = with pythonPackages; [ acme setuptools_scm josepy ];
|
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 ];
|
2015-12-05 08:43:56 +01:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|
2018-03-20 22:26:30 +01:00
|
|
|
|