Merge pull request #44469 from nyarly/simp_le_090

simp_le: 0.8.0 -> 0.9.0
This commit is contained in:
xeji 2018-08-04 23:35:41 +02:00 committed by GitHub
commit 8d184e14e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,17 +1,19 @@
{ stdenv, pythonPackages, bash }:
pythonPackages.buildPythonApplication rec {
pname = "simp_le-client";
version = "0.8.0";
version = "0.9.0";
src = pythonPackages.fetchPypi {
inherit pname version;
sha256 = "0nv9mm99rm8i9flgfgwvmajbsxb5rm162nfxlq3wk66bbbyr6y1i";
sha256 = "1yxfznd78zkg2f657v520zj5w4dvq5n594d0kpm4lra8xnpg4zcv";
};
postPatch = ''
# drop upper bound of acme requirement
sed -ri "s/'(acme>=[^,]+),<[^']+'/'\1'/" setup.py
# drop upper bound of idna requirement
sed -ri "s/'(idna)<[^']+'/'\1'/" setup.py
substituteInPlace simp_le.py \
--replace "/bin/sh" "${bash}/bin/sh"
'';
@ -20,14 +22,13 @@ pythonPackages.buildPythonApplication rec {
$out/bin/simp_le --test
'';
propagatedBuildInputs = with pythonPackages; [ acme setuptools_scm josepy ];
propagatedBuildInputs = with pythonPackages; [ acme setuptools_scm josepy idna ];
meta = with stdenv.lib; {
homepage = https://github.com/zenhack/simp_le;
description = "Simple Let's Encrypt client";
license = licenses.gpl3;
maintainers = with maintainers; [ gebner makefu ];
platforms = platforms.all;
platforms = platforms.linux;
};
}