blob: 368bb2cc2f855208d6b774683ee8eb827d42be66 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
setuptools-scm,
fusepy,
fuse,
openssl,
}:
buildPythonPackage rec {
pname = "acme-tiny";
version = "5.0.1";
pyproject = true;
src = fetchPypi {
inherit pname version;
sha256 = "378549808eece574c3b5dcea82b216534949423d5c7ac241d9419212d676bc8d";
};
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
];
doCheck = false; # seems to hang, not sure
pythonImportsCheck = [ "acme_tiny" ];
meta = with lib; {
description = "Tiny script to issue and renew TLS certs from Let's Encrypt";
mainProgram = "acme-tiny";
homepage = "https://github.com/diafygi/acme-tiny";
license = licenses.mit;
};
}
|