summaryrefslogtreecommitdiff
path: root/gnu/packages/python-crypto.scm
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-08-26 01:32:09 +0200
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-09-03 08:01:06 +0100
commit8ce24834216d357994bedba58bed500e6df6fd5a (patch)
tree03693af35dff1864f34887befe0933b3ab2f745e /gnu/packages/python-crypto.scm
parent479de7b3adcb11e7c18c3a97e81e5a664a1021b2 (diff)
gnu: python-pylibscrypt: Switch to pyproject.
* gnu/packages/python-crypto.scm (python-pylibscrypt): [source]: Switch to git-fetch. [build-system]: Switch to pyproject-build-system. [arguments, inputs]: Remove them. [native-inputs]: Add python-pytest, python-setuptools, python-wheel. [description]: Rewrite it. Change-Id: I012930b6dad02b02a15c7bda5f6dc96cad632343 Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/python-crypto.scm')
-rw-r--r--gnu/packages/python-crypto.scm37
1 files changed, 10 insertions, 27 deletions
diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm
index c172247e6d9..600dfc63d1c 100644
--- a/gnu/packages/python-crypto.scm
+++ b/gnu/packages/python-crypto.scm
@@ -1140,36 +1140,19 @@ supports KDBX3 and KDBX4.")
(version "1.7.1")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "pylibscrypt" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/jvarho/pylibscrypt")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
(sha256
- (base32
- "1b3rgzl6dbzs08vhv41b6y4n5189wv7lr27acxn104hs45745abs"))))
- (build-system python-build-system)
- (arguments
- `(#:phases
- (modify-phases %standard-phases
- (add-before 'build 'hard-code-path-to-libscrypt
- (lambda* (#:key inputs #:allow-other-keys)
- (let ((libscrypt (assoc-ref inputs "libscrypt")))
- (substitute* "pylibscrypt/pylibscrypt.py"
- (("find_library\\('scrypt'\\)")
- (string-append "'" libscrypt "/lib/libscrypt.so'")))
- #t))))
- ;; The library can use various scrypt implementations and tests all of
- ;; them. Since we only provide a single implementation, most tests
- ;; fail. Simply skip them.
- #:tests? #f))
- ;; FIXME: Using "libscrypt" is the second best choice. The best one
- ;; requires "hashlib.scrypt", provided by Python 3.6+ built with OpenSSL
- ;; 1.1+. Use that as soon as Guix provides it.
- (inputs
- (list libscrypt))
+ (base32 "0plp5fvk3pzv5wgzqfggdqvvsfsxjid53a0hxbpn2h1dp33vkrh0"))))
+ (build-system pyproject-build-system)
+ (native-inputs (list python-pytest python-setuptools python-wheel))
(home-page "https://github.com/jvarho/pylibscrypt")
(synopsis "Scrypt for Python")
- (description "There are a lot of different scrypt modules for Python, but
-none of them have everything that I'd like, so here's one more. It uses
-@code{libscrypt}.")
+ (description
+ "This package provides another Scrypt module for Python.")
(license license:isc)))
(define-public python-libnacl