Package Details: python-embit 0.8.0-1

Git Clone URL: https://aur.archlinux.org/python-embit.git (read-only, click to copy)
Package Base: python-embit
Description: A minimal bitcoin library for MicroPython and Python3 focusing on embedded systems
Upstream URL: https://github.com/diybitcoinhardware/embit
Licenses: MIT
Submitter: bitcoinlizard
Maintainer: bitcoinlizard
Last Packager: bitcoinlizard
Votes: 0
Popularity: 0.000000
First Submitted: 2021-06-12 14:07 (UTC)
Last Updated: 2024-06-01 20:21 (UTC)

Latest Comments

bitcoinlizard commented on 2021-07-12 01:02 (UTC)

@lmartinez-mirror - Thank you for the patch. I have applied it and pushed the changes to the AUR.

lmartinez-mirror commented on 2021-07-11 23:35 (UTC)

A couple of issues with this PKGBUILD:

  • source filenames are not unique (see more here)
  • The setup.py installs some shared libraries that are already provided by the optional dep
  • The VCS and -bin variants of this PKGBUILD should provide and conflict against this package, not the other way around; you also don't need to provide this package as it's already implied

Here's a patch you can use for your PKGBUILD

diff --git a/PKGBUILD b/PKGBUILD
index 2c82591..a653f49 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,22 +1,22 @@
 # Maintainer: bitcoinlizard <bitcoinlizard@fastmail.com>
+# Contributor: Luis Martinez <luis dot martinez at tuta dot io>

 pkgname=python-embit
 pkgver=0.4.4
-pkgrel=1
-pkgdesc="A minimal bitcoin library for MicroPython and Python3 with a focus on embedded systems."
+pkgrel=2
+pkgdesc="A minimal bitcoin library for MicroPython and Python3 focusing on embedded systems"
 arch=('any')
 url="https://github.com/diybitcoinhardware/embit"
 license=('MIT')
 makedepends=('python-setuptools')
-depends=('python')
-conflicts=('python-embit-git')
+depends=('python3')
 optdepends=('libsecp256k1')
-provides=('python-embit')
-source=("https://github.com/diybitcoinhardware/embit/archive/refs/tags/v${pkgver}.tar.gz")
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v${pkgver}.tar.gz")
 sha256sums=('db5500c9b0daa29eda4f050ca0f0b26f445aa087cdb451e817ac92fe3a0728b5')

 prepare() {
   cd "embit-${pkgver}"
+  sed -i '/package_data/d' setup.py
 }

 build() {
@@ -26,9 +26,8 @@ build() {

 package() {
   cd "embit-${pkgver}"
-
   python setup.py install --root="$pkgdir" --optimize=1 --skip-build

   # Install license since the package doesn't include it
-  install -Dm 644 "$srcdir/"embit-${pkgver}"/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+  install -Dm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
 }