[arch-commits] Commit in python2-btchip/trunk (PKGBUILD remove-pyusb-dependency.patch)

Timothy Redaelli tredaelli at archlinux.org
Tue Sep 8 14:06:40 UTC 2015


    Date: Tuesday, September 8, 2015 @ 16:06:40
  Author: tredaelli
Revision: 139611

upgpkg: python2-btchip 0.1.16-1

Modified:
  python2-btchip/trunk/PKGBUILD
Deleted:
  python2-btchip/trunk/remove-pyusb-dependency.patch

-------------------------------+
 PKGBUILD                      |   18 +++++-------------
 remove-pyusb-dependency.patch |   22 ----------------------
 2 files changed, 5 insertions(+), 35 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-09-08 14:05:00 UTC (rev 139610)
+++ PKGBUILD	2015-09-08 14:06:40 UTC (rev 139611)
@@ -3,26 +3,18 @@
 # Contributor: Andy Weidenbaum <archbaum at gmail.com>
 
 pkgname=python2-btchip
-pkgver=0.1.14
-pkgrel=2
+pkgver=0.1.16
+pkgrel=1
 pkgdesc="Python library to communicate with BTChip dongle"
 arch=('any')
 depends=('python2-hidapi')
 makedepends=('python2-setuptools')
+optdepends=('btchip-udev: access BTChip as non-root user')
 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')
+source=($pkgname-$pkgver.tar.gz::https://github.com/LedgerHQ/btchip-python/archive/v$pkgver.tar.gz)
+sha256sums=('4c9e85977485c01c11fa4513f10f2e5a5f06afa1d04b5270a13d70606ccd4527')
 
-prepare() {
-  cd btchip-python-$pkgver
-
-  # Disable useless (on linux) pyusb dependency
-  patch -uNp1 -i ../remove-pyusb-dependency.patch
-}
-
 build() {
   cd btchip-python-$pkgver
 

Deleted: remove-pyusb-dependency.patch
===================================================================
--- remove-pyusb-dependency.patch	2015-09-08 14:05:00 UTC (rev 139610)
+++ remove-pyusb-dependency.patch	2015-09-08 14:06:40 UTC (rev 139611)
@@ -1,22 +0,0 @@
-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