Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

48 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
setuptools-scm,
fusepy,
fuse,
openssl,
}:
buildPythonPackage rec {
pname = "acme-tiny";
version = "5.0.2";
pyproject = true;
src = fetchPypi {
pname = "acme_tiny";
inherit version;
hash = "sha256-s84ZVYPcLxOnxvqQBS+Ks0myMtvCZ62cv0co6u2E3dg=";
};
patchPhase = ''
substituteInPlace acme_tiny.py --replace-fail '"openssl"' '"${openssl.bin}/bin/openssl"'
substituteInPlace tests/test_module.py --replace-fail '"openssl"' '"${openssl.bin}/bin/openssl"'
substituteInPlace tests/utils.py --replace-fail /etc/ssl/openssl.cnf ${openssl.out}/etc/ssl/openssl.cnf
'';
build-system = [
setuptools
setuptools-scm
];
nativeCheckInputs = [
fusepy
fuse
];
pythonImportsCheck = [ "acme_tiny" ];
meta = {
description = "Tiny script to issue and renew TLS certs from Let's Encrypt";
mainProgram = "acme-tiny";
homepage = "https://github.com/diafygi/acme-tiny";
license = lib.licenses.mit;
};
}