1{ lib 2, buildPythonPackage 3, fetchPypi 4, setuptools-scm 5, fusepy 6, fuse 7, openssl 8}: 9 10buildPythonPackage rec { 11 pname = "acme-tiny"; 12 version = "5.0.1"; 13 14 src = fetchPypi { 15 inherit pname version; 16 sha256 = "378549808eece574c3b5dcea82b216534949423d5c7ac241d9419212d676bc8d"; 17 }; 18 19 patchPhase = '' 20 substituteInPlace acme_tiny.py --replace '"openssl"' '"${openssl.bin}/bin/openssl"' 21 substituteInPlace tests/test_module.py --replace '"openssl"' '"${openssl.bin}/bin/openssl"' 22 substituteInPlace tests/utils.py --replace /etc/ssl/openssl.cnf ${openssl.out}/etc/ssl/openssl.cnf 23 ''; 24 25 buildInputs = [ setuptools-scm ]; 26 27 nativeCheckInputs = [ fusepy fuse ]; 28 29 doCheck = false; # seems to hang, not sure 30 31 pythonImportsCheck = [ "acme_tiny" ]; 32 33 meta = with lib; { 34 description = "A tiny script to issue and renew TLS certs from Let's Encrypt"; 35 homepage = "https://github.com/diafygi/acme-tiny"; 36 license = licenses.mit; 37 }; 38}