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