acme-tiny: 2016-03-26 -> 4.0.4
* fetch from pypi * nearly fix tests, but they seem to hang so leaving disabled for now
This commit is contained in:
parent
f46793a32c
commit
ea18bea382
@ -1,34 +1,26 @@
|
|||||||
{ stdenv, buildPythonPackage, fetchFromGitHub
|
{ stdenv, buildPythonPackage, fetchPypi, setuptools_scm, fusepy, fuse
|
||||||
, python, openssl }:
|
, openssl }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "acme-tiny";
|
pname = "acme-tiny";
|
||||||
version = "2016-03-26";
|
version = "4.0.4";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchPypi {
|
||||||
sha256 = "0ngmr3kxcvlqa9mrv3gx0rg4r67xvdjplqfminxliri3ipak853g";
|
inherit pname version;
|
||||||
rev = "7a5a2558c8d6e5ab2a59b9fec9633d9e63127971";
|
sha256 = "0vqlmvk34jgvgx3qdsh50q7m4aiy02786jyjjcq45dcws7a4f9f1";
|
||||||
repo = "acme-tiny";
|
|
||||||
owner = "diafygi";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# source doesn't have any python "packaging" as such
|
|
||||||
configurePhase = " ";
|
|
||||||
buildPhase = " ";
|
|
||||||
# the tests are... complex
|
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
patchPhase = ''
|
patchPhase = ''
|
||||||
substituteInPlace acme_tiny.py --replace "openssl" "${openssl.bin}/bin/openssl"
|
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
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
buildInputs = [ setuptools_scm ];
|
||||||
mkdir -p $out/${python.sitePackages}/
|
checkInputs = [ fusepy fuse ];
|
||||||
cp acme_tiny.py $out/${python.sitePackages}/
|
|
||||||
mkdir -p $out/bin
|
doCheck = false; # seems to hang, not sure
|
||||||
ln -s $out/${python.sitePackages}/acme_tiny.py $out/bin/acme_tiny
|
|
||||||
chmod +x $out/bin/acme_tiny
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "A tiny script to issue and renew TLS certs from Let's Encrypt";
|
description = "A tiny script to issue and renew TLS certs from Let's Encrypt";
|
||||||
|
Loading…
Reference in New Issue
Block a user