From 3422669f50ad8e0acd4f9de428c46091056c0267 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 28 Dec 2025 12:18:56 +0000 Subject: [PATCH] gnu: python-pykeepass: Update to 4.1.1.post1. * gnu/packages/python-crypto.scm (python-pykeepass): Update to 4.1.1.post1. [build-system]: Switch to pyproject-build-system. [arguments] : Use 'unittest. : Remove 'make-kdbx-writable and 'patch-requirements. [propagated-inputs]: Remove python-dateutil and python-future; add python-pyotp. [native-inputs]: Add python-setuptools. Change-Id: I0a47e095caec0334e2980cac4dc81881cc4fb1d2 --- gnu/packages/python-crypto.scm | 35 +++++++++++----------------------- 1 file changed, 11 insertions(+), 24 deletions(-) diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm index a770b588ab5aa6fb820a68242be18f1e93795e08..d66fa8f80abaf51c0cd811a7b28e49a0cce69a7c 100644 --- a/gnu/packages/python-crypto.scm +++ b/gnu/packages/python-crypto.scm @@ -1152,41 +1152,28 @@ through the Engine interface.") (define-public python-pykeepass (package (name "python-pykeepass") - (version "3.2.1") + (version "4.1.1.post1") (source (origin (method git-fetch) - ;; Source tarball on PyPI doesn't include tests. (uri (git-reference - (url "https://github.com/libkeepass/pykeepass") - (commit version))) + (url "https://github.com/libkeepass/pykeepass") + (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "1symxf4ahylynihnp9z4z3lh2vy65ipvg8s4hjrnn936hcaaxghk")))) - (build-system python-build-system) + (base32 "1ayvgklq3naydx01m7hyvf44ywczk5yzy2pk48bpfayl7bgk7q8d")))) + (build-system pyproject-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))))) + ;; tests: 115 passed + (list #:test-backend #~'unittest)) + (native-inputs + (list python-setuptools)) (propagated-inputs (list python-argon2-cffi python-construct - python-dateutil - python-future python-lxml - python-pycryptodomex)) + python-pycryptodomex + python-pyotp)) (home-page "https://github.com/libkeepass/pykeepass") (synopsis "Python library to interact with keepass databases") (description