guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 3422669f50ad8e0acd4f9de428c46091056c0267
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Sun Dec 28 12:18:56 2025 +0000

    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] <test-backend>: Use 'unittest.
    <phases>: 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 a770b588ab..d66fa8f80a 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

Reply via email to