2021-06-03 10:09:11 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, setuptools-scm, fusepy, fuse
|
2019-06-07 03:30:04 +00:00
|
|
|
, openssl }:
|
2017-07-19 08:50:21 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "acme-tiny";
|
2019-07-15 07:05:55 +00:00
|
|
|
version = "4.1.0";
|
2017-07-19 08:50:21 +00:00
|
|
|
|
2019-06-07 03:30:04 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-07-15 07:05:55 +00:00
|
|
|
sha256 = "0jmg525n4n98hwy3hf303jbnq23z79sqwgliji9j7qcnph47gkgq";
|
2017-07-19 08:50:21 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patchPhase = ''
|
2019-06-07 03:30:04 +00:00
|
|
|
substituteInPlace acme_tiny.py --replace '"openssl"' '"${openssl.bin}/bin/openssl"'
|
|
|
|
substituteInPlace tests/monkey.py --replace '"openssl"' '"${openssl.bin}/bin/openssl"'
|
|
|
|
substituteInPlace tests/test_module.py --replace '"openssl"' '"${openssl.bin}/bin/openssl"'
|
|
|
|
substituteInPlace tests/monkey.py --replace /etc/ssl/openssl.cnf ${openssl.out}/etc/ssl/openssl.cnf
|
2017-07-19 08:50:21 +00:00
|
|
|
'';
|
|
|
|
|
2021-06-03 10:09:11 +00:00
|
|
|
buildInputs = [ setuptools-scm ];
|
2019-06-07 03:30:04 +00:00
|
|
|
checkInputs = [ fusepy fuse ];
|
|
|
|
|
|
|
|
doCheck = false; # seems to hang, not sure
|
2017-07-19 08:50:21 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-07-19 08:50:21 +00:00
|
|
|
description = "A tiny script to issue and renew TLS certs from Let's Encrypt";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/diafygi/acme-tiny";
|
2017-07-19 08:50:21 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|