mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 06:03:40 +00:00
c990b091f5
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/python3.7-acme-tiny/versions
31 lines
995 B
Nix
31 lines
995 B
Nix
{ stdenv, buildPythonPackage, fetchPypi, setuptools_scm, fusepy, fuse
|
|
, openssl }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "acme-tiny";
|
|
version = "4.1.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "0jmg525n4n98hwy3hf303jbnq23z79sqwgliji9j7qcnph47gkgq";
|
|
};
|
|
|
|
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
|
|
'';
|
|
|
|
buildInputs = [ setuptools_scm ];
|
|
checkInputs = [ fusepy fuse ];
|
|
|
|
doCheck = false; # seems to hang, not sure
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "A tiny script to issue and renew TLS certs from Let's Encrypt";
|
|
homepage = https://github.com/diafygi/acme-tiny;
|
|
license = licenses.mit;
|
|
};
|
|
}
|