[arch-commits] Commit in python2-btchip/repos/community-any (3 files)

Timothy Redaelli tredaelli at archlinux.org
Mon Mar 30 15:03:05 UTC 2015


    Date: Monday, March 30, 2015 @ 17:03:05
  Author: tredaelli
Revision: 130301

archrelease: copy trunk to community-any

Added:
  python2-btchip/repos/community-any/PKGBUILD
    (from rev 130300, python2-btchip/trunk/PKGBUILD)
  python2-btchip/repos/community-any/remove-pyusb-dependency.patch
    (from rev 130300, python2-btchip/trunk/remove-pyusb-dependency.patch)
Deleted:
  python2-btchip/repos/community-any/PKGBUILD

-------------------------------+
 PKGBUILD                      |   63 ++++++++++++++++++++++------------------
 remove-pyusb-dependency.patch |   22 +++++++++++++
 2 files changed, 58 insertions(+), 27 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2015-03-30 15:02:58 UTC (rev 130300)
+++ PKGBUILD	2015-03-30 15:03:05 UTC (rev 130301)
@@ -1,27 +0,0 @@
-# $Id$
-# Maintainer: Timothy Redaelli <timothy.redaelli at gmail.com>
-# Contributor: Andy Weidenbaum <archbaum at gmail.com>
-
-pkgname=python2-btchip
-pkgver=0.1.14
-pkgrel=1
-pkgdesc="Python library to communicate with BTChip dongle"
-arch=('any')
-depends=('python2-hidapi')
-makedepends=('python2-setuptools')
-url="https://github.com/LedgerHQ/btchip-python"
-license=('Apache')
-source=(https://github.com/LedgerHQ/btchip-python/archive/v$pkgver.tar.gz)
-sha256sums=('6adfa69f18bc3ecff07a877dd46eff62dc747bd8cac491d882ba1bcb16bd16d5')
-
-build() {
-  cd btchip-python-$pkgver
-
-  python2 setup.py build
-}
-
-package() {
-  cd btchip-python-$pkgver
-
-  python2 setup.py install --root="$pkgdir" --optimize=1
-}

Copied: python2-btchip/repos/community-any/PKGBUILD (from rev 130300, python2-btchip/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2015-03-30 15:03:05 UTC (rev 130301)
@@ -0,0 +1,36 @@
+# $Id$
+# Maintainer: Timothy Redaelli <timothy.redaelli at gmail.com>
+# Contributor: Andy Weidenbaum <archbaum at gmail.com>
+
+pkgname=python2-btchip
+pkgver=0.1.14
+pkgrel=2
+pkgdesc="Python library to communicate with BTChip dongle"
+arch=('any')
+depends=('python2-hidapi')
+makedepends=('python2-setuptools')
+url="https://github.com/LedgerHQ/btchip-python"
+license=('Apache')
+source=($pkgname-$pkgver.tar.gz::https://github.com/LedgerHQ/btchip-python/archive/v$pkgver.tar.gz
+        remove-pyusb-dependency.patch)
+sha256sums=('6adfa69f18bc3ecff07a877dd46eff62dc747bd8cac491d882ba1bcb16bd16d5'
+            '36dd49db4931e5ef6010e5673d4aaa3adb671ca955db97787cd0ae5726538141')
+
+prepare() {
+  cd btchip-python-$pkgver
+
+  # Disable useless (on linux) pyusb dependency
+  patch -uNp1 -i ../remove-pyusb-dependency.patch
+}
+
+build() {
+  cd btchip-python-$pkgver
+
+  python2 setup.py build
+}
+
+package() {
+  cd btchip-python-$pkgver
+
+  python2 setup.py install --root="$pkgdir" --optimize=1
+}

Copied: python2-btchip/repos/community-any/remove-pyusb-dependency.patch (from rev 130300, python2-btchip/trunk/remove-pyusb-dependency.patch)
===================================================================
--- remove-pyusb-dependency.patch	                        (rev 0)
+++ remove-pyusb-dependency.patch	2015-03-30 15:03:05 UTC (rev 130301)
@@ -0,0 +1,22 @@
+From 7d6bc6105ed2f405fbb683a5d6ceafc55e92e3c0 Mon Sep 17 00:00:00 2001
+From: drizzt <timothy.redaelli at gmail.com>
+Date: Wed, 18 Mar 2015 16:01:27 +0100
+Subject: [PATCH] Don't include usb.core in btchipPersoWizard.py
+
+It's useless and it enforce pyusb to be a mandatory depends, but on not-Windows it's not needed.
+---
+ btchip/btchipPersoWizard.py | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/btchip/btchipPersoWizard.py b/btchip/btchipPersoWizard.py
+index 3220227..486e6d9 100644
+--- a/btchip/btchipPersoWizard.py
++++ b/btchip/btchipPersoWizard.py
+@@ -28,7 +28,6 @@
+ except:
+ 	MNEMONIC = False
+ 
+-from usb.core import USBError
+ from btchipComm import getDongle, DongleWait
+ from btchip import btchip
+ from btchipUtils import compress_public_key,format_transaction, get_regular_input_script



More information about the arch-commits mailing list