Files
nixpkgs/pkgs/development/python-modules/acme-tiny/default.nix
T
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

45 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
setuptools-scm,
fusepy,
fuse,
openssl,
}:
buildPythonPackage rec {
pname = "acme-tiny";
version = "5.0.1";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "378549808eece574c3b5dcea82b216534949423d5c7ac241d9419212d676bc8d";
};
patchPhase = ''
substituteInPlace acme_tiny.py --replace '"openssl"' '"${openssl.bin}/bin/openssl"'
substituteInPlace tests/test_module.py --replace '"openssl"' '"${openssl.bin}/bin/openssl"'
substituteInPlace tests/utils.py --replace /etc/ssl/openssl.cnf ${openssl.out}/etc/ssl/openssl.cnf
'';
buildInputs = [ setuptools-scm ];
nativeCheckInputs = [
fusepy
fuse
];
doCheck = false; # seems to hang, not sure
pythonImportsCheck = [ "acme_tiny" ];
meta = with lib; {
description = "Tiny script to issue and renew TLS certs from Let's Encrypt";
mainProgram = "acme-tiny";
homepage = "https://github.com/diafygi/acme-tiny";
license = licenses.mit;
};
}