depot/third_party/nixpkgs/pkgs/tools/admin/simp_le/default.nix
Default email bba55970ba Project import generated by Copybara.
GitOrigin-RevId: 3d1a7716d7f1fccbd7d30ab3b2ed3db831f43bde
2021-04-05 17:23:46 +02:00

34 lines
893 B
Nix

{ lib, python3Packages, bash }:
python3Packages.buildPythonApplication rec {
pname = "simp_le-client";
version = "0.17.0";
src = python3Packages.fetchPypi {
inherit pname version;
sha256 = "0m1jynar4calaffp2zdxr5yy9vnhw2qf2hsfxwzfwf8fqb5h7bjb";
};
postPatch = ''
# drop upper bound of idna requirement
sed -ri "s/'(idna)<[^']+'/'\1'/" setup.py
substituteInPlace simp_le.py \
--replace "/bin/sh" "${bash}/bin/sh"
'';
checkPhase = ''
$out/bin/simp_le --test
'';
propagatedBuildInputs = with python3Packages; [ acme setuptools_scm josepy idna ];
checkInputs = with python3Packages; [ mock ];
meta = with lib; {
homepage = "https://github.com/zenhack/simp_le";
description = "Simple Let's Encrypt client";
license = licenses.gpl3;
maintainers = with maintainers; [ gebner makefu ];
platforms = platforms.linux;
};
}