@@ -260,7 +260,44 @@ in modules // {
260260
261261 buildInputs = with self; [ nose ];
262262
263− sourceRoot = "letsencrypt-${version}/acme";
263+ sourceRoot = "letsencrypt-v${version}-src/acme";
264+ };
265+
266+ acme-tiny = buildPythonPackage rec {
267+ name = "acme-tiny-${version}";
268+ version = "20151229";
269+ rev = "f61f72c212cea27f388eb4a26ede0d65035bdb53";
270+
271+ src = pkgs.fetchgit {
272+ inherit rev;
273+ url = "https://github.com/diafygi/acme-tiny.git";
274+ sha256 = "dde59354e483bdff3dfd06717c094889ae673efb568e40b150b4695b0c539649";
275+ };
276+
277+ # source doesn't have any python "packaging" as such
278+ configurePhase = " ";
279+ buildPhase = " ";
280+ # the tests are... complex
281+ doCheck = false;
282+
283+ patchPhase = ''
284+ substituteInPlace acme_tiny.py --replace "openssl" "${pkgs.openssl}/bin/openssl"
285+ substituteInPlace letsencrypt/le_util.py --replace '"sw_vers"' '"/usr/bin/sw_vers"'
286+ '';
287+
288+ installPhase = ''
289+ mkdir -p $out/${python.sitePackages}/
290+ cp acme_tiny.py $out/${python.sitePackages}/
291+ mkdir -p $out/bin
292+ ln -s $out/${python.sitePackages}/acme_tiny.py $out/bin/acme_tiny
293+ chmod +x $out/bin/acme_tiny
294+ '';
295+
296+ meta = {
297+ description = "A tiny script to issue and renew TLS certs from Let's Encrypt";
298+ homepage = https://github.com/diafygi/acme-tiny;
299+ license = licenses.mit;
300+ };
264301 };
265302
266303 acme-tiny = buildPythonPackage rec {