1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-15 09:03:48 +00:00
nixpkgs/pkgs/tools/admin/simp_le/default.nix

34 lines
879 B
Nix
Raw Normal View History

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