From 2a30ca09291a28df4e45c7240fa603c8e505d87d Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Wed, 14 Oct 2020 15:23:13 +0200 Subject: gnu: python-passlib: Update to 1.7.4. * gnu/packages/python-crypto.scm (python-passlib): Update to 1.7.4. --- gnu/packages/python-crypto.scm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gnu/packages/python-crypto.scm') diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm index f39695a850b..5474373622b 100644 --- a/gnu/packages/python-crypto.scm +++ b/gnu/packages/python-crypto.scm @@ -141,13 +141,13 @@ Password Scheme\"} by Niels Provos and David Mazieres.") (define-public python-passlib (package (name "python-passlib") - (version "1.7.2") + (version "1.7.4") (source (origin (method url-fetch) (uri (pypi-uri "passlib" version)) (sha256 - (base32 "1a5ngap7kq0b4azq8nlfg6xg5bcl1i0v1sbynhmbr631jgpnqrld")))) + (base32 "015y5qaw9qnxr29lg60dml1g5rbqd4586wy5n8m41ib55gvm1zfy")))) (build-system python-build-system) (native-inputs `(("python-nose" ,python-nose))) @@ -157,8 +157,8 @@ Password Scheme\"} by Niels Provos and David Mazieres.") `(#:phases (modify-phases %standard-phases (add-before 'check 'set-PYTHON_EGG_CACHE - ;; some tests require access to "$HOME/.cython" - (lambda* _ (setenv "PYTHON_EGG_CACHE" "/tmp") #t))))) + ;; Some tests require access to "$HOME/.cython". + (lambda _ (setenv "PYTHON_EGG_CACHE" "/tmp") #t))))) (home-page "https://bitbucket.org/ecollins/passlib") (synopsis "Comprehensive password hashing framework") (description -- cgit v1.2.3 From 642647ae9305c701b2191a4cbcf28ce583da7d1d Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Wed, 14 Oct 2020 14:54:21 +0200 Subject: gnu: python-pgpy: Update to 0.5.3. * gnu/packages/python-crypto.scm (python-pgpy): Update to 0.5.3. --- gnu/packages/python-crypto.scm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gnu/packages/python-crypto.scm') diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm index 5474373622b..a86151b4852 100644 --- a/gnu/packages/python-crypto.scm +++ b/gnu/packages/python-crypto.scm @@ -1537,20 +1537,20 @@ signatures.") (define-public python-pgpy (package (name "python-pgpy") - (version "0.5.2") + (version "0.5.3") (source (origin (method url-fetch) (uri (pypi-uri "PGPy" version)) (sha256 - (base32 - "0i4lqhzdwkjkim3wab0kqadx28z3r5ixlh6qxj4lif4gif56c0m7")))) + (base32 "11rrq15gmn6qbahli7czflfcngjl7zyybjlvk732my6axnf2d754")))) (build-system python-build-system) (native-inputs `(("python-cryptography" ,python-cryptography) ("python-pyasn1" ,python-pyasn1) ("python-singledispatch" ,python-singledispatch) - ("python-six" ,python-six))) + ("python-six" ,python-six) + ("python-wheel" ,python-wheel))) (home-page "https://github.com/SecurityInnovation/PGPy") (synopsis "Python implementation of OpenPGP") (description -- cgit v1.2.3 From ed0e8c7cc92df8deec15edd097c03a82cdc2e58b Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Wed, 14 Oct 2020 14:56:40 +0200 Subject: gnu: python-pgpy: Run the tests. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/python-crypto.scm (python-pgpy)[arguments]: Replace the default ‘check’ phase. [native-inputs]: Add python-pytest. --- gnu/packages/python-crypto.scm | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'gnu/packages/python-crypto.scm') diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm index a86151b4852..81a5c213da1 100644 --- a/gnu/packages/python-crypto.scm +++ b/gnu/packages/python-crypto.scm @@ -1545,9 +1545,17 @@ signatures.") (sha256 (base32 "11rrq15gmn6qbahli7czflfcngjl7zyybjlvk732my6axnf2d754")))) (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "pytest"))))))) (native-inputs `(("python-cryptography" ,python-cryptography) ("python-pyasn1" ,python-pyasn1) + ("python-pytest" ,python-pytest) ("python-singledispatch" ,python-singledispatch) ("python-six" ,python-six) ("python-wheel" ,python-wheel))) -- cgit v1.2.3 From cba7a6f7df0d6df181434591b2e5df58dcc9a09d Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Sat, 17 Oct 2020 15:07:17 +0200 Subject: gnu: python-base58: Update to 2.0.1. * gnu/packages/python-crypto.scm (python-base58): Update to 2.0.1. --- gnu/packages/python-crypto.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gnu/packages/python-crypto.scm') diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm index 81a5c213da1..bad774aa03e 100644 --- a/gnu/packages/python-crypto.scm +++ b/gnu/packages/python-crypto.scm @@ -91,14 +91,14 @@ Python. It does not bind to libotr.") (define-public python-base58 (package (name "python-base58") - (version "1.0.3") + (version "2.0.1") (source (origin (method url-fetch) (uri (pypi-uri "base58" version)) (sha256 (base32 - "0q1yr0n5jaf17xq98m7dma6z4rh8p19ch55l1s09gi3rk5ckqycs")))) + "0yfaqp76kbdb62hikr5n4jkkfjfmii89grwfy6sw3fmsv5hrap1n")))) (build-system python-build-system) (native-inputs `(("python-pyhamcrest" ,python-pyhamcrest))) -- cgit v1.2.3 From 68d425cda8be8356ab5e8aab54be0f19f08fedd0 Mon Sep 17 00:00:00 2001 From: Vinicius Monego Date: Mon, 12 Oct 2020 00:38:49 -0300 Subject: gnu: Add python-pykeepass. * gnu/packages/python-crypto.scm (python-pykeepass): New variable. Signed-off-by: Marius Bakke --- gnu/packages/python-crypto.scm | 48 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) (limited to 'gnu/packages/python-crypto.scm') diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm index bad774aa03e..7084c3a4ecd 100644 --- a/gnu/packages/python-crypto.scm +++ b/gnu/packages/python-crypto.scm @@ -61,6 +61,7 @@ #:use-module (gnu packages swig) #:use-module (gnu packages time) #:use-module (gnu packages tls) + #:use-module (gnu packages xml) #:use-module ((guix licenses) #:prefix license:) #:use-module (srfi srfi-1)) @@ -1060,6 +1061,53 @@ through the Engine interface.") (propagated-inputs `(("python2-typing" ,python2-typing)))))) +(define-public python-pykeepass + (package + (name "python-pykeepass") + (version "3.2.0") + (source + (origin + (method git-fetch) + ;; Source tarball on PyPI doesn't include tests. + (uri (git-reference + (url "https://github.com/libkeepass/pykeepass") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1wxbfpy7467mlnfsvmh685fhfnq4fki9y7yc9cylp30r5n3hisaj")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'make-kdbx-writable + ;; Tests have to write to the .kdbx files in the test directory. + (lambda _ + (with-directory-excursion "tests" + (for-each make-file-writable (find-files ".")) + #t))) + (add-before 'build 'patch-requirements + (lambda _ + ;; Update requirements from dependency==version + ;; to dependency>=version. + (substitute* "setup.py" + (("==") ">=")) + #t))))) + (propagated-inputs + `(("python-argon2-cffi" ,python-argon2-cffi) + ("python-construct" ,python-construct) + ("python-dateutil" ,python-dateutil) + ("python-future" ,python-future) + ("python-lxml" ,python-lxml) + ("python-pycryptodome" ,python-pycryptodome))) + (home-page "https://github.com/libkeepass/pykeepass") + (synopsis "Python library to interact with keepass databases") + (description + "This library allows you to write entries to a KeePass database. It +supports KDBX3 and KDBX4.") + ;; There are no copyright headers in the source code. The LICENSE file + ;; indicates GPL3. + (license license:gpl3+))) + (define-public python-pylibscrypt (package (name "python-pylibscrypt") -- cgit v1.2.3 From 6f8d776d2589e0f7bdebaba6aab984c1decae150 Mon Sep 17 00:00:00 2001 From: Vinicius Monego Date: Mon, 12 Oct 2020 21:53:22 -0300 Subject: gnu: Add python-pyotp. * gnu/packages/python-crypto.scm (python-pyotp): New variable. Signed-off-by: Marius Bakke --- gnu/packages/python-crypto.scm | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'gnu/packages/python-crypto.scm') diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm index 7084c3a4ecd..b294613a5b4 100644 --- a/gnu/packages/python-crypto.scm +++ b/gnu/packages/python-crypto.scm @@ -1181,6 +1181,26 @@ been constructed to maintain extensive documentation on how to use @code{NaCl} as well as being completely portable.") (license license:asl2.0))) +(define-public python-pyotp + (package + (name "python-pyotp") + (version "2.4.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "pyotp" version)) + (sha256 + (base32 "0a1dx07y785xyl70h0vj6vssg13qfx11w04d0gz8h48qffsymv01")))) + (build-system python-build-system) + (home-page "https://github.com/pyauth/pyotp") + (synopsis "Python One Time Password Library") + (description + "PyOTP is a Python library for generating and verifying one-time +passwords. It can be used to implement two-factor (2FA) or multi-factor +(MFA) authentication methods in web applications and in other systems that +require users to log in.") + (license license:expat))) + (define-public python-scrypt (package (name "python-scrypt") -- cgit v1.2.3