Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 30 lines 995 B view raw
1{ stdenv, buildPythonPackage, fetchPypi, setuptools_scm, fusepy, fuse 2, openssl }: 3 4buildPythonPackage rec { 5 pname = "acme-tiny"; 6 version = "4.1.0"; 7 8 src = fetchPypi { 9 inherit pname version; 10 sha256 = "0jmg525n4n98hwy3hf303jbnq23z79sqwgliji9j7qcnph47gkgq"; 11 }; 12 13 patchPhase = '' 14 substituteInPlace acme_tiny.py --replace '"openssl"' '"${openssl.bin}/bin/openssl"' 15 substituteInPlace tests/monkey.py --replace '"openssl"' '"${openssl.bin}/bin/openssl"' 16 substituteInPlace tests/test_module.py --replace '"openssl"' '"${openssl.bin}/bin/openssl"' 17 substituteInPlace tests/monkey.py --replace /etc/ssl/openssl.cnf ${openssl.out}/etc/ssl/openssl.cnf 18 ''; 19 20 buildInputs = [ setuptools_scm ]; 21 checkInputs = [ fusepy fuse ]; 22 23 doCheck = false; # seems to hang, not sure 24 25 meta = with stdenv.lib; { 26 description = "A tiny script to issue and renew TLS certs from Let's Encrypt"; 27 homepage = https://github.com/diafygi/acme-tiny; 28 license = licenses.mit; 29 }; 30}