Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / acme-tiny / default.nix
blobf0e1d699a8efc93f1e587301041136a5c9d1a171
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , setuptools-scm
5 , fusepy
6 , fuse
7 , openssl
8 }:
10 buildPythonPackage rec {
11   pname = "acme-tiny";
12   version = "5.0.1";
13   format = "setuptools";
15   src = fetchPypi {
16     inherit pname version;
17     sha256 = "378549808eece574c3b5dcea82b216534949423d5c7ac241d9419212d676bc8d";
18   };
20   patchPhase = ''
21     substituteInPlace acme_tiny.py --replace '"openssl"' '"${openssl.bin}/bin/openssl"'
22     substituteInPlace tests/test_module.py --replace '"openssl"' '"${openssl.bin}/bin/openssl"'
23     substituteInPlace tests/utils.py --replace /etc/ssl/openssl.cnf ${openssl.out}/etc/ssl/openssl.cnf
24   '';
26   buildInputs = [ setuptools-scm ];
28   nativeCheckInputs = [ fusepy fuse ];
30   doCheck = false; # seems to hang, not sure
32   pythonImportsCheck = [ "acme_tiny" ];
34   meta = with lib; {
35     description = "A tiny script to issue and renew TLS certs from Let's Encrypt";
36     mainProgram = "acme-tiny";
37     homepage = "https://github.com/diafygi/acme-tiny";
38     license = licenses.mit;
39   };