letsencrypt: add 0.0.0.dev20151030

This commit is contained in:
Domen Kožar 2015-10-31 22:01:20 +01:00
parent a9254356d1
commit b8d9a16eec
3 changed files with 111 additions and 4 deletions

View file

@ -0,0 +1,50 @@
{ stdenv, pythonPackages, fetchurl, dialog }:
let
src = fetchurl {
url = "https://github.com/letsencrypt/letsencrypt/archive/v${version}.tar.gz";
sha256 = "1xr1ii2kfbhspyirwyqlk4vyx88irif92mw02jwfx9mnslk9gral";
};
version = "0.0.0.dev20151030";
acme = pythonPackages.buildPythonPackage rec {
name = "acme-${version}";
inherit src version;
propagatedBuildInputs = with pythonPackages; [
cryptography pyasn1 pyopenssl pyRFC3339 pytz requests2 six werkzeug mock
ndg-httpsclient
];
buildInputs = with pythonPackages; [ nose ];
sourceRoot = "letsencrypt-${version}/acme";
};
in pythonPackages.buildPythonPackage rec {
name = "letsencrypt-${version}";
inherit src version;
propagatedBuildInputs = with pythonPackages; [
zope_interface zope_component six requests2 pytz pyopenssl psutil mock acme
cryptography configobj pyRFC3339 python2-pythondialog parsedatetime ConfigArgParse
];
buildInputs = with pythonPackages; [ nose dialog ];
patchPhase = ''
substituteInPlace letsencrypt/notify.py --replace "/usr/sbin/sendmail" "/var/setuid-wrappers/sendmail"
'';
postInstall = ''
for i in $out/bin/*; do
wrapProgram "$i" --prefix PYTHONPATH : "$PYTHONPATH" \
--prefix PATH : "${dialog}/bin:$PATH"
done
'';
meta = with stdenv.lib; {
homepage = https://github.com/letsencrypt/letsencrypt;
description = "ACME client that can obtain certs and extensibly update server configurations";
platforms = platforms.unix;
maintainers = [ maintainers.iElectric ];
license = licenses.apl20;
};
}

View file

@ -6830,6 +6830,8 @@ let
libpng = libpng12;
};
letsencrypt = callPackage ../tools/admin/letsencrypt { };
lib3ds = callPackage ../development/libraries/lib3ds { };
libaacs = callPackage ../development/libraries/libaacs { };

View file

@ -6658,6 +6658,61 @@ let
};
});
python2-pythondialog = buildPythonPackage rec {
name = "python2-pythondialog-${version}";
version = "3.3.0";
disabled = !isPy27;
src = pkgs.fetchurl {
url = "https://pypi.python.org/packages/source/p/python2-pythondialog/python2-pythondialog-${version}.tar.gz";
sha256 = "1yhkagsh99bfi592ymczf8rnw8rk6n9hdqy3dd98m3yrx8zmjvry";
};
patchPhase = ''
substituteInPlace dialog.py ":/bin:/usr/bin" ":$out/bin"
'';
meta = with stdenv.lib; {
homepage = "http://pythondialog.sourceforge.net/";
};
};
pyRFC3339 = buildPythonPackage rec {
name = "pyRFC3339-${version}";
version = "0.2";
src = pkgs.fetchurl {
url = "https://pypi.python.org/packages/source/p/pyRFC3339/pyRFC3339-${version}.tar.gz";
sha256 = "1pp648xsjaw9h1xq2mgwzda5wis2ypjmzxlksc1a8grnrdmzy155";
};
propagatedBuildInputs = with self; [ pytz ];
buildInputs = with self; [ nose ];
};
ConfigArgParse = buildPythonPackage rec {
name = "ConfigArgParse-${version}";
version = "0.9.3";
src = pkgs.fetchurl {
url = "https://pypi.python.org/packages/source/C/ConfigArgParse/ConfigArgParse-${version}.tar.gz";
sha256 = "0a984pvv7370yz7zbkl6s6i7yyl9myahx0m9jkjvg3hz5q8mf70l";
};
# no tests in tarball
doCheck = false;
propagatedBuildInputs = with self; [
];
buildInputs = with self; [
];
meta = with stdenv.lib; {
homepage = "https://github.com/zorro3/ConfigArgParse";
};
};
jsonschema = buildPythonPackage (rec {
version = "2.4.0";
name = "jsonschema-${version}";
@ -14066,14 +14121,14 @@ let
pyopenssl = buildPythonPackage rec {
name = "pyopenssl-${version}";
version = "0.14";
version = "0.15.1";
src = pkgs.fetchurl {
url = "https://pypi.python.org/packages/source/p/pyOpenSSL/pyOpenSSL-0.14.tar.gz";
sha256 = "0vpfqhng4cky7chliknkxv910iabqbfcxvkjiankh08jkkjvi7d9";
url = "https://pypi.python.org/packages/source/p/pyOpenSSL/pyOpenSSL-${version}.tar.gz";
sha256 = "0wnnq15rhj7fhdcd8ycwiw6r6g3w9f9lcy6cigg8226vsrq618ph";
};
# 17 tests failing
# 12 tests failing, 26 error out
doCheck = false;
propagatedBuildInputs = [ self.cryptography self.pyasn1 self.idna ];