From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:54192) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iquSG-0005e5-Iv for guix-patches@gnu.org; Mon, 13 Jan 2020 02:48:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iquSF-0008Ry-5Y for guix-patches@gnu.org; Mon, 13 Jan 2020 02:48:08 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:52612) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iquSB-0008Jb-IE for guix-patches@gnu.org; Mon, 13 Jan 2020 02:48:06 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iquSB-0008F4-HM for guix-patches@gnu.org; Mon, 13 Jan 2020 02:48:03 -0500 Subject: [bug#39028] [PATCH 3/7] gnu: Add python-k5test Resent-Message-ID: From: Lars-Dominik Braun Date: Mon, 13 Jan 2020 08:46:51 +0100 Message-Id: <20200113074655.11012-3-ldb@leibniz-psychology.org> In-Reply-To: <20200113074655.11012-1-ldb@leibniz-psychology.org> References: <20200113074655.11012-1-ldb@leibniz-psychology.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 39028@debbugs.gnu.org Cc: zimon.toutoune@gmail.com * gnu/packages/python-xyz.scm (python-k5test): New variable --- gnu/packages/python-xyz.scm | 39 +++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index e9d9c372e7..846113aceb 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -112,6 +112,7 @@ #:use-module (gnu packages icu4c) #:use-module (gnu packages image) #:use-module (gnu packages imagemagick) + #:use-module (gnu packages kerberos) #:use-module (gnu packages libevent) #:use-module (gnu packages libffi) #:use-module (gnu packages linux) @@ -17171,3 +17172,41 @@ that take parsers as their arguments and return them as result values.") (synopsis "Patch python built-in objects") (description "This project allows Python code to extend built-in types.") (license (list license:gpl3+ license:expat)))) + +(define-public python-k5test + (package + (name "python-k5test") + (version "0.9.2") + (source + (origin + (method url-fetch) + (uri (pypi-uri "k5test" version)) + (sha256 + (base32 + "1lqp3jgfngyhaxjgj3n230hn90wsylwilh120yjf62h7b1s02mh8")))) + (build-system python-build-system) + (propagated-inputs + `(("python-six" ,python-six) + ;; `which`, `kadmin.local` binaries called inside library + ("which" ,which) + ("mit-krb5" ,mit-krb5))) + (native-inputs `(("mit-krb5" ,mit-krb5))) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'patch-paths + (lambda* _ + (substitute* "k5test/realm.py" + (("'kadmin_local'") "'kadmin.local'"))))))) + (home-page + "https://github.com/pythongssapi/k5test") + (synopsis + "Library for testing Python applications in self-contained Kerberos 5 +environments") + (description + "k5test is a library for setting up self-contained Kerberos 5 +environments, and running Python unit tests inside those environments. +It is based on the file of the same name found alongside the MIT Kerberos 5 +unit tests.") + (license license:isc))) + -- 2.20.1