2019-06-07 04:30:04 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, setuptools_scm, fusepy, fuse
|
|
|
|
, openssl }:
|
2017-07-19 09:50:21 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "acme-tiny";
|
2019-06-07 04:30:04 +01:00
|
|
|
version = "4.0.4";
|
2017-07-19 09:50:21 +01:00
|
|
|
|
2019-06-07 04:30:04 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "0vqlmvk34jgvgx3qdsh50q7m4aiy02786jyjjcq45dcws7a4f9f1";
|
2017-07-19 09:50:21 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
patchPhase = ''
|
2019-06-07 04:30:04 +01: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 09:50:21 +01:00
|
|
|
'';
|
|
|
|
|
2019-06-07 04:30:04 +01:00
|
|
|
buildInputs = [ setuptools_scm ];
|
|
|
|
checkInputs = [ fusepy fuse ];
|
|
|
|
|
|
|
|
doCheck = false; # seems to hang, not sure
|
2017-07-19 09:50:21 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A tiny script to issue and renew TLS certs from Let's Encrypt";
|
|
|
|
homepage = https://github.com/diafygi/acme-tiny;
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|