nixpkgs/pkgs/tools/admin/simp_le/default.nix

35 lines
948 B
Nix
Raw Normal View History

2018-08-05 00:17:38 +01:00
{ stdenv, python3Packages, bash }:
2018-08-04 20:56:55 +01:00
2018-08-05 00:17:38 +01:00
python3Packages.buildPythonApplication rec {
2017-02-20 11:47:46 +00:00
pname = "simp_le-client";
2018-08-04 20:56:55 +01:00
version = "0.9.0";
2018-08-05 00:17:38 +01:00
src = python3Packages.fetchPypi {
2017-02-20 11:47:46 +00:00
inherit pname version;
2018-08-04 20:56:55 +01:00
sha256 = "1yxfznd78zkg2f657v520zj5w4dvq5n594d0kpm4lra8xnpg4zcv";
};
2018-03-21 09:14:52 +00:00
postPatch = ''
# drop upper bound of acme requirement
sed -ri "s/'(acme>=[^,]+),<[^']+'/'\1'/" setup.py
2018-08-04 20:56:55 +01: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
'';
2018-08-05 00:17:38 +01:00
propagatedBuildInputs = with python3Packages; [ 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;
2018-03-20 21:26:30 +00:00
maintainers = with maintainers; [ gebner makefu ];
platforms = platforms.linux;
};
}