python3Packages.acme-tiny: fix build

This commit is contained in:
Fabian Affolter 2021-09-01 14:29:39 +02:00 committed by Martin Weinelt
parent b68026b52b
commit 80d7fafa0e

View File

@ -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";