package/python-pylibftdi: bump to version 0.21.0

License hash changed due to year update:
c96231bb81

Fixup patch so that it applies against 0.21.0.

Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
James Hilliard 2024-01-09 22:34:49 -07:00 committed by Thomas Petazzoni
parent eb2f00f621
commit 0f8cd4499a
3 changed files with 13 additions and 12 deletions

View File

@ -15,17 +15,18 @@ this package.
Signed-off-by: Christian Kellermann <christian.kellermann@solectrix.de>
---
diff -purN pylibftdi-0.15.0.orig/pylibftdi/driver.py pylibftdi-0.15.0/pylibftdi/driver.py
--- pylibftdi-0.15.0.orig/pylibftdi/driver.py 2015-04-26 22:41:39.000000000 +0200
+++ pylibftdi-0.15.0/pylibftdi/driver.py 2017-02-27 13:08:56.502958000 +0100
@@ -121,8 +121,8 @@ class Driver(object):
diff -purN pylibftdi-0.21.0.orig/src/pylibftdi/driver.py pylibftdi-0.21.0/src/pylibftdi/driver.py
--- pylibftdi-0.21.0.orig/src/pylibftdi/driver.py 2015-04-26 22:41:39.000000000 +0200
+++ pylibftdi-0.21.0/src/pylibftdi/driver.py 2017-02-27 13:08:56.502958000 +0100
@@ -148,9 +148,8 @@ class Driver:
lib = getattr(cdll, lib_path)
break
if lib is None:
- raise LibraryMissingError('{} library not found (search: {})'.format(
- name, search_list))
- raise LibraryMissingError(
- f"{name} library not found (search: {str(search_list)})"
- )
+ return cdll.LoadLibrary(name + '.so')
+
return lib
@property

View File

@ -1,5 +1,5 @@
# md5, sha256 from https://pypi.org/pypi/pylibftdi/json
md5 fb43ade3283b809d4ebe92bf4a60d7fc pylibftdi-0.20.0.tar.gz
sha256 f4a87fc4af2c9c7d42badd4192ca9b529f32c9d96fdc8daea7e29c509226df5f pylibftdi-0.20.0.tar.gz
md5 75b63f325b760cc6342b7d35fbb84fde pylibftdi-0.21.0.tar.gz
sha256 eb7e2f5052852547f4c6c46022a1665f9d7453439639171eade56fdc80a58832 pylibftdi-0.21.0.tar.gz
# Locally computed sha256 checksums
sha256 0d3f1af06b566a783091422061b60e864fc5d5853418b71643041e254b4ae7f9 LICENSE.txt
sha256 b8a7b113cfaa2c01d0701183de16ba653465692b1e29e0229244eee42fb3a9a8 LICENSE.txt

View File

@ -4,9 +4,9 @@
#
################################################################################
PYTHON_PYLIBFTDI_VERSION = 0.20.0
PYTHON_PYLIBFTDI_VERSION = 0.21.0
PYTHON_PYLIBFTDI_SOURCE = pylibftdi-$(PYTHON_PYLIBFTDI_VERSION).tar.gz
PYTHON_PYLIBFTDI_SITE = https://files.pythonhosted.org/packages/b8/03/4f778ce6dceea58dc5bfd555c22fdb265afc922d81d3c4496a791a54c479
PYTHON_PYLIBFTDI_SITE = https://files.pythonhosted.org/packages/d2/ce/ff3e83f3a14eb5b7950ff3657f07cdc3033dd0ded5c8ed093db515e1de33
PYTHON_PYLIBFTDI_LICENSE = MIT
PYTHON_PYLIBFTDI_LICENSE_FILES = LICENSE.txt
PYTHON_PYLIBFTDI_DEPENDENCIES = libftdi