summaryrefslogtreecommitdiff
path: root/gnu/packages/python-crypto.scm
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-08-05 12:49:21 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-09-25 09:35:56 +0100
commitc2e9f2701c057da1844b93107ab8aec48ab03e94 (patch)
treed2a774072b34778109153015961bb60d476e594c /gnu/packages/python-crypto.scm
parent50bb215478614918fb28b1efbee88f79a3f3a1aa (diff)
gnu: python-argon2-cffi: Update to 25.1.0.
* gnu/packages/python-crypto.scm (python-argon2-cffi): Update to 25.1.0. [source] <snippet>: No longer required. [build-system]: Use pyproject. [arguments] <phases>: Use default 'build and 'check. [inputs]: Remove argon2. [propagated-inputs]: Remove python-cffi and python-typing-extensions; add python-argon2-cffi-bindings. [native-inputs]: Remove python-hypothesis; add python-hatch-fancy-pypi-readme, python-hatch-vcs, and python-hatchling. Change-Id: Ia9f544acbfa2e915afd73b6ed24516be18dd1803
Diffstat (limited to 'gnu/packages/python-crypto.scm')
-rw-r--r--gnu/packages/python-crypto.scm42
1 files changed, 12 insertions, 30 deletions
diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm
index c35a9bc77b8..bcefc938999 100644
--- a/gnu/packages/python-crypto.scm
+++ b/gnu/packages/python-crypto.scm
@@ -1577,39 +1577,21 @@ I/O-free core, and integration modules for different event loops.")
1577(define-public python-argon2-cffi 1577(define-public python-argon2-cffi
1578 (package 1578 (package
1579 (name "python-argon2-cffi") 1579 (name "python-argon2-cffi")
1580 (version "21.1.0") 1580 (version "25.1.0")
1581 (source 1581 (source
1582 (origin 1582 (origin
1583 (method url-fetch) 1583 (method url-fetch)
1584 (uri (pypi-uri "argon2-cffi" version)) 1584 (uri (pypi-uri "argon2_cffi" version))
1585 (sha256 1585 (sha256
1586 (base32 1586 (base32 "1ha62fg9blw38q3qayjid8608fp2a57fd81cpzic9x22ib6fajk9"))))
1587 "0w5q5cdwmzpjgw3bl9f6b9a5xai87qvx3jryra9gd8fi0c8vc47p")) 1587 (build-system pyproject-build-system)
1588 (modules '((guix build utils)))
1589 (snippet '(delete-file-recursively "extras"))))
1590 ;; TODO: with pyproject-build-system the install phase fails.
1591 (build-system python-build-system)
1592 (arguments
1593 (list
1594 #:phases
1595 '(modify-phases %standard-phases
1596 (replace 'build
1597 (lambda _
1598 (setenv "ARGON2_CFFI_USE_SYSTEM" "1")
1599 (invoke "python" "setup.py" "build")))
1600 (replace 'check
1601 (lambda* (#:key tests? #:allow-other-keys)
1602 (when tests?
1603 (invoke "pytest")
1604 (invoke "python" "-m" "argon2" "--help")
1605 ;; see tox.ini
1606 (invoke "python" "-m" "argon2" "-n" "1" "-t" "1" "-m" "8" "-p" "1")))))))
1607 (propagated-inputs
1608 (list python-cffi python-typing-extensions))
1609 (inputs (list argon2))
1610 (native-inputs 1588 (native-inputs
1611 (list python-hypothesis 1589 (list python-hatch-fancy-pypi-readme
1590 python-hatch-vcs
1591 python-hatchling
1612 python-pytest)) 1592 python-pytest))
1593 (propagated-inputs
1594 (list python-argon2-cffi-bindings))
1613 (home-page "https://argon2-cffi.readthedocs.io/") 1595 (home-page "https://argon2-cffi.readthedocs.io/")
1614 (synopsis "Secure Password Hashes for Python") 1596 (synopsis "Secure Password Hashes for Python")
1615 (description 1597 (description