python3Packages.acme-tiny: fix build
This commit is contained in:
parent
b68026b52b
commit
80d7fafa0e
@ -1,5 +1,11 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, setuptools-scm, fusepy, fuse
|
||||
, openssl }:
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, setuptools-scm
|
||||
, fusepy
|
||||
, fuse
|
||||
, openssl
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "acme-tiny";
|
||||
@ -12,16 +18,18 @@ buildPythonPackage rec {
|
||||
|
||||
patchPhase = ''
|
||||
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
|
||||
substituteInPlace tests/utils.py --replace /etc/ssl/openssl.cnf ${openssl.out}/etc/ssl/openssl.cnf
|
||||
'';
|
||||
|
||||
buildInputs = [ setuptools-scm ];
|
||||
|
||||
checkInputs = [ fusepy fuse ];
|
||||
|
||||
doCheck = false; # seems to hang, not sure
|
||||
|
||||
pythonImportsCheck = [ "acme_tiny" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A tiny script to issue and renew TLS certs from Let's Encrypt";
|
||||
homepage = "https://github.com/diafygi/acme-tiny";
|
||||
|
Loading…
Reference in New Issue
Block a user