Merge pull request #37493 from makefu/pkgs/simp_le/0.8.0

simp_le: 0.6.1 -> 0.8.0
This commit is contained in:
Jörg Thalheim 2018-03-21 12:03:59 +00:00 committed by GitHub
commit f2feb99990
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 71 additions and 17 deletions

View File

@ -1,6 +1,18 @@
{ stdenv, buildPythonPackage, fetchPypi { stdenv, buildPythonPackage, fetchPypi
, certbot, nose, cryptography, pyasn1, pyopenssl, pyRFC3339 , certbot
, pytz, requests, six, werkzeug, mock, ndg-httpsclient }: , nose
, cryptography
, pyasn1
, pyopenssl
, pyRFC3339
, josepy
, pytz
, requests
, six
, werkzeug
, mock
, ndg-httpsclient
}:
buildPythonPackage rec { buildPythonPackage rec {
inherit (certbot) src version; inherit (certbot) src version;
@ -10,10 +22,10 @@ buildPythonPackage rec {
propagatedBuildInputs = [ propagatedBuildInputs = [
cryptography pyasn1 pyopenssl pyRFC3339 pytz requests six werkzeug mock cryptography pyasn1 pyopenssl pyRFC3339 pytz requests six werkzeug mock
ndg-httpsclient ndg-httpsclient josepy
]; ];
buildInputs = [ nose ]; checkInputs = [ nose ];
postUnpack = "sourceRoot=\${sourceRoot}/acme"; postUnpack = "sourceRoot=\${sourceRoot}/acme";
} }

View File

@ -0,0 +1,35 @@
{ lib, fetchPypi, buildPythonPackage
# buildInputs
, six
, setuptools
, pyopenssl
, cryptography
}:
buildPythonPackage rec {
pname = "josepy";
version = "1.0.1";
src = fetchPypi {
inherit pname version;
sha256 = "1k0ahzzaq2rrjiifwbhbp7vm8z4zk0ipgiqwicil80kzlf6bhj4z";
};
propagatedBuildInputs = [
pyopenssl
cryptography
six
setuptools
];
# too many unpackaged check requirements
doCheck = false;
meta = with lib; {
description = "JOSE protocol implementation in Python";
homepage = https://github.com/jezdez/josepy;
license = licenses.asl20;
maintainers = with maintainers; [ ];
};
}

View File

@ -1,19 +1,19 @@
{ stdenv, python2Packages, fetchFromGitHub, dialog }: { stdenv, pythonPackages, fetchFromGitHub, dialog }:
# Latest version of certbot supports python3 and python3 version of pythondialog # Latest version of certbot supports python3 and python3 version of pythondialog
python2Packages.buildPythonApplication rec { pythonPackages.buildPythonApplication rec {
name = "certbot-${version}"; name = "certbot-${version}";
version = "0.19.0"; version = "0.22.2";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "certbot"; owner = "certbot";
repo = "certbot"; repo = "certbot";
rev = "v${version}"; rev = "v${version}";
sha256 = "14i3q59v7j0q2pa1dri420fhil4h0vgl4vb471hp81f4y14gq6h7"; sha256 = "08x80x9d71j84mwjm5wzd0x5gcw6gwyvkvadi2js39js6hfnc6jg";
}; };
propagatedBuildInputs = with python2Packages; [ propagatedBuildInputs = with pythonPackages; [
ConfigArgParse ConfigArgParse
acme acme
configobj configobj
@ -28,7 +28,7 @@ python2Packages.buildPythonApplication rec {
zope_component zope_component
zope_interface zope_interface
]; ];
buildInputs = [ dialog ] ++ (with python2Packages; [ nose mock gnureadline ]); buildInputs = [ dialog ] ++ (with pythonPackages; [ nose mock gnureadline ]);
patchPhase = '' patchPhase = ''
substituteInPlace certbot/notify.py --replace "/usr/sbin/sendmail" "/run/wrappers/bin/sendmail" substituteInPlace certbot/notify.py --replace "/usr/sbin/sendmail" "/run/wrappers/bin/sendmail"

View File

@ -1,26 +1,31 @@
{ stdenv, fetchFromGitHub, fetchpatch, pythonPackages }: { stdenv, fetchFromGitHub, fetchpatch, pythonPackages, bash }:
pythonPackages.buildPythonApplication rec { pythonPackages.buildPythonApplication rec {
pname = "simp_le-client"; pname = "simp_le-client";
version = "0.6.1"; version = "0.8.0";
name = "${pname}-${version}";
src = pythonPackages.fetchPypi { src = pythonPackages.fetchPypi {
inherit pname version; inherit pname version;
sha256 = "0x4fky9jizs3xi55cdy217cvm3ikpghiabysan71b07ackkdfj6k"; sha256 = "0nv9mm99rm8i9flgfgwvmajbsxb5rm162nfxlq3wk66bbbyr6y1i";
}; };
postPatch = ''
substituteInPlace simp_le.py \
--replace "/bin/sh" "${bash}/bin/sh"
'';
checkPhase = '' checkPhase = ''
$out/bin/simp_le --test $out/bin/simp_le --test
''; '';
propagatedBuildInputs = with pythonPackages; [ acme setuptools_scm ]; propagatedBuildInputs = with pythonPackages; [ acme setuptools_scm josepy ];
meta = with stdenv.lib; { meta = with stdenv.lib; {
homepage = https://github.com/zenhack/simp_le; homepage = https://github.com/zenhack/simp_le;
description = "Simple Let's Encrypt client"; description = "Simple Let's Encrypt client";
license = licenses.gpl3; license = licenses.gpl3;
maintainers = with maintainers; [ gebner ]; maintainers = with maintainers; [ gebner makefu ];
platforms = platforms.all; platforms = platforms.all;
}; };
} }

View File

@ -5002,6 +5002,8 @@ in {
JPype1 = callPackage ../development/python-modules/JPype1 {}; JPype1 = callPackage ../development/python-modules/JPype1 {};
josepy = callPackage ../development/python-modules/josepy {};
jsbeautifier = callPackage ../development/python-modules/jsbeautifier {}; jsbeautifier = callPackage ../development/python-modules/jsbeautifier {};
jug = callPackage ../development/python-modules/jug {}; jug = callPackage ../development/python-modules/jug {};