2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
setuptools-scm,
|
|
|
|
fusepy,
|
|
|
|
fuse,
|
|
|
|
openssl,
|
2021-09-18 10:52:07 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "acme-tiny";
|
2021-09-18 10:52:07 +00:00
|
|
|
version = "5.0.1";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-09-18 10:52:07 +00:00
|
|
|
sha256 = "378549808eece574c3b5dcea82b216534949423d5c7ac241d9419212d676bc8d";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
substituteInPlace acme_tiny.py --replace '"openssl"' '"${openssl.bin}/bin/openssl"'
|
|
|
|
substituteInPlace tests/test_module.py --replace '"openssl"' '"${openssl.bin}/bin/openssl"'
|
2021-09-18 10:52:07 +00:00
|
|
|
substituteInPlace tests/utils.py --replace /etc/ssl/openssl.cnf ${openssl.out}/etc/ssl/openssl.cnf
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-06-04 09:07:49 +00:00
|
|
|
buildInputs = [ setuptools-scm ];
|
2021-09-18 10:52:07 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
fusepy
|
|
|
|
fuse
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
doCheck = false; # seems to hang, not sure
|
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
pythonImportsCheck = [ "acme_tiny" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Tiny script to issue and renew TLS certs from Let's Encrypt";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "acme-tiny";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/diafygi/acme-tiny";
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|