all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: attila.lendvai@gmail.com
To: 73148@debbugs.gnu.org
Cc: Attila Lendvai <attila@lendvai.name>
Subject: [bug#73148] [PATCH 2/4] gnu: python-mnemonic: Update to 0.21.
Date: Mon,  9 Sep 2024 16:28:21 +0200	[thread overview]
Message-ID: <e53c13c2ffbf13a7ab65d39cfb398f5a2cf7d759.1725892102.git.attila@lendvai.name> (raw)
In-Reply-To: <9f72e41ee461463d495624f1bf285b8c3ca63fc5.1725892102.git.attila@lendvai.name>

From: Attila Lendvai <attila@lendvai.name>

* gnu/packages/finance.scm (python-mnemonic): Build from git and use
pyproject-build-system to build it.

Change-Id: Ie033cd8afa11711da070d3fc792375c3648c1756
---
 gnu/packages/finance.scm | 27 ++++++++++++++++++---------
 1 file changed, 18 insertions(+), 9 deletions(-)

diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm
index 317842c5937..8547676b51b 100644
--- a/gnu/packages/finance.scm
+++ b/gnu/packages/finance.scm
@@ -1019,16 +1019,25 @@ (define-public trezor-gpg-pinentry-tk
 (define-public python-mnemonic
   (package
     (name "python-mnemonic")
-    (version "0.20")
+    (version "0.21")
     (source
-      (origin
-        (method url-fetch)
-        (uri (pypi-uri "mnemonic" version))
-        (sha256
-          (base32 "1xi5qvj2rvi5almf9c89rl7hz1z4ms04d53pg818i4vpkmivavvw"))))
-    (build-system python-build-system)
-    (propagated-inputs
-     (list python-pbkdf2))
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/trezor/python-mnemonic")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1r8cdlgqpmj71ap3kyhc2nq8dn29gmj7v8dlq8kgcy91jky94n8g"))))
+    (build-system pyproject-build-system)
+    (arguments
+     '(#:phases
+       (modify-phases %standard-phases
+         (replace 'check
+           (lambda _
+             (invoke "python" "tests/test_mnemonic.py"))))))
+    (native-inputs
+     (list python-poetry-core))
     (home-page "https://github.com/trezor/python-mnemonic")
     (synopsis "Implementation of Bitcoin BIP-0039")
     (description "@code{mnemonic} is a library that provides an implementation
-- 
2.46.0





  reply	other threads:[~2024-09-09 14:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-09 14:26 [bug#73148] Update Trezor packages Attila Lendvai
2024-09-09 14:28 ` [bug#73148] [PATCH 1/4] gnu: trezor-agent: Update to 0.15.0 attila.lendvai
2024-09-09 14:28   ` attila.lendvai [this message]
2024-09-09 14:28   ` [bug#73148] [PATCH 3/4] gnu: python-trezor: Update to 0.13.9 attila.lendvai
2024-09-09 14:28   ` [bug#73148] [PATCH 4/4] gnu: python-trezor-agent: Use absolute path for gpg at runtime attila.lendvai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e53c13c2ffbf13a7ab65d39cfb398f5a2cf7d759.1725892102.git.attila@lendvai.name \
    --to=attila.lendvai@gmail.com \
    --cc=73148@debbugs.gnu.org \
    --cc=attila@lendvai.name \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.