guix_mirror_bot pushed a commit to branch ungraft
in repository guix.

commit e454250ac9de0d65b7f1fb93549bd2f7c94a3727
Author: Hugo Buddelmeijer <[email protected]>
AuthorDate: Sun Dec 14 17:05:39 2025 +0100

    gnu: python-pyotp: Switch to pyproject-build-system.
    
    * gnu/packages/python-crypto.scm (python-pyotp): Switch to
    pyproject-build-system.
    [source]: Switch to git-fetch.
    [build-system]: Switch to pyproject-build-system.
    [arguments]<#:test-flags>: Use test.py.
    [native-inputs]: Add python-setuptools and python-pytest.
    
    Change-Id: Ic77d0ad4173804ca300dc2d7bdce6d0529141f8b
    Signed-off-by: Rutherther <[email protected]>
---
 gnu/packages/python-crypto.scm | 18 ++++++++++++++----
 1 file changed, 14 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm
index eb53edcfac..f20a366269 100644
--- a/gnu/packages/python-crypto.scm
+++ b/gnu/packages/python-crypto.scm
@@ -1225,11 +1225,21 @@ been constructed to maintain extensive documentation on 
how to use
     (version "2.9.0")
     (source
      (origin
-       (method url-fetch)
-       (uri (pypi-uri "pyotp" version))
+       (method git-fetch)
+       (uri (git-reference
+              (url "https://github.com/pyauth/pyotp";)
+              (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
        (sha256
-        (base32 "0qvgsf86az9cqj6d8vim2shvyam89ik0p4sszysf7pfvw116csrl"))))
-    (build-system python-build-system)
+        (base32 "0fx253649bvs2w31jdwnr51dm0b6v1zhp7mprnis37c57vj4qczz"))))
+    (build-system pyproject-build-system)
+    (arguments
+     (list
+      #:test-flags
+      #~(list "test.py")))
+    (native-inputs
+     (list python-setuptools
+           python-pytest))
     (home-page "https://github.com/pyauth/pyotp";)
     (synopsis "Python One Time Password Library")
     (description

Reply via email to