;;; Copyright © 2012 Nikita Karetnikov <nikita@karetnikov.org>
;;; Copyright © 2015 Andreas Enge <andreas@enge.fr>
;;; Copyright © 2015 Andy Wingo <wingo@igalia.com>
-;;; Copyright © 2015, 2016, 2017 Ricardo Wurmus <rekado@elephly.net>
+;;; Copyright © 2015, 2016, 2017, 2018, 2019 Ricardo Wurmus <rekado@elephly.net>
;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2016 Theodoros Foradis <theodoros@foradis.org>
;;; Copyright © 2017 Jonathan Brielmaier <jonathan.brielmaier@web.de>
;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2018 Vagrant Cascadian <vagrant@debian.org>
+;;; Copyright © 2020 Marius Bakke <mbakke@fastmail.com>
+;;; Copyright © 2020 Christopher Howard <christopher@librehacker.com>
;;;
;;; This file is part of GNU Guix.
;;;
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages python)
#:use-module (gnu packages python-xyz)
+ #:use-module (gnu packages tls)
#:use-module (gnu packages xiph))
(define-public libusb
(package
(name "libusb")
- (version "1.0.22")
+ (version "1.0.23")
(source
(origin
(method url-fetch)
- (uri (string-append "mirror://sourceforge/libusb/libusb-1.0/"
- "libusb-" version "/libusb-" version ".tar.bz2"))
+ (uri (string-append "https://github.com/libusb/libusb/"
+ "releases/download/v" version
+ "/libusb-" version ".tar.bz2"))
(sha256
- (base32
- "0mw1a5ss4alg37m6bd4k44v35xwrcwp5qm4s686q1nsgkbavkbkm"))))
+ (base32 "13dd2a9x290d1q8nb1lqiaf36grcvns5ripk5k2xm0lajmpc04fv"))))
(build-system gnu-build-system)
;; XXX: Enabling udev is now recommended, but eudev indirectly depends on
(origin
(method url-fetch)
(uri (string-append "mirror://sourceforge/libusb/"
- name "-" (version-major+minor version) "/"
- name "-" version "/"
- name "-" version ".tar.bz2"))
+ "libusb-compat-" (version-major+minor version) "/"
+ "libusb-compat-" version "/"
+ "libusb-compat-" version ".tar.bz2"))
(sha256
(base32
"0nn5icrfm9lkhzw1xjvaks9bq3w6mjg86ggv3fn7kgi4nfvg8kj0"))))
(sha256
(base32
"0i4bacxkyr7xyqxbmb00ypkrv4swkgm0mghbzjsnw6blvvczgxip"))
- (patches (search-patches "libusb-0.1-disable-tests.patch"))))))
+ (patches (search-patches "libusb-0.1-disable-tests.patch"))))
+ (arguments `(#:configure-flags (list "CFLAGS=-Wno-error")))))
(define-public libusb4java
;; There is no public release so we take the latest version from git.
(define-public python2-pyusb
(package-with-python2 python-pyusb))
+(define-public python-capablerobot-usbhub
+ (package
+ (name "python-capablerobot-usbhub")
+ (version "0.2.7")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "capablerobot_usbhub" version))
+ (sha256
+ (base32
+ "1priic4iq2vn1rc711kzxwhxrwa508rkxrr193qdz2lw26kdhvix"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'install 'install-udev-rules
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out")))
+ (mkdir-p (string-append out "/lib/udev/rules.d"))
+ (copy-file "50-capablerobot-usbhub.rules"
+ (string-append out
+ "/lib/udev/rules.d/"
+ "50-capablerobot-usbhub.rules"))
+ #t))))))
+ (propagated-inputs
+ `(("python-click" ,python-click)
+ ("python-construct" ,python-construct)
+ ("python-pyusb" ,python-pyusb)
+ ("python-pyyaml" ,python-pyyaml)))
+ (home-page
+ "https://github.com/CapableRobot/CapableRobot_USBHub_Driver")
+ (synopsis
+ "Host side driver for the Capable Robot Programmable USB Hub")
+ (description
+ "This package provides access to the internal state of the Capable Robot
+USB Hub, allowing you to monitor and control the Hub from an upstream
+computer. It also creates a transparent CircuitPython Bridge, allowing
+unmodified CircuitPython code to run on the host computer and interact with
+I2C and SPI devices attached to the USB Hub.")
+ (license license:expat)))
+
+(define-public libplist
+ (package
+ (name "libplist")
+ (version "2.1.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/libimobiledevice/libplist.git")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "02vraf4j46bp746s0gz7vga2gv2dy3zd1v1bsy9x8algg9fpcb7n"))))
+ (build-system gnu-build-system)
+ (arguments
+ `(;; Tests fail randomly when run in parallel because several of them write
+ ;; and read to/from the same file--e.g., "4.plist" is accessed by
+ ;; 'large.test' and 'largecmp.test'.
+ #:parallel-tests? #f))
+ (inputs
+ `(("python" ,python)))
+ (native-inputs
+ `(("autoconf" ,autoconf)
+ ("automake" ,automake)
+ ("libtool" ,libtool)
+ ("pkg-config" ,pkg-config)
+ ("python-cython" ,python-cython))) ; to build Python bindings
+ (home-page "https://www.libimobiledevice.org/")
+ (synopsis "C library to handle Apple Property List files")
+ (description "This package provides a small portable C library to handle
+Apple Property List files in binary or XML.")
+ (license license:lgpl2.1+)))
+
+(define-public libusbmuxd
+ (package
+ (name "libusbmuxd")
+ (version "1.0.10")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "https://www.libimobiledevice.org/downloads/"
+ "libusbmuxd-" version ".tar.bz2"))
+ (sha256
+ (base32
+ "1wn9zq2224786mdr12c5hxad643d29wg4z6b7jn888jx4s8i78hs"))))
+ (build-system gnu-build-system)
+ (native-inputs
+ `(("pkg-config" ,pkg-config)
+ ("libplist" ,libplist)))
+ (home-page "https://www.libimobiledevice.org/")
+ (synopsis "Library to multiplex connections from and to iOS devices")
+ (description "This package provides a client library to multiplex
+connections from and to iOS devices by connecting to a socket provided by a
+@code{usbmuxd} daemon.")
+ (license license:lgpl2.1+)))
+
+;; These patches are needed to build with Python 3.8.
+(define %libimobiledevice-patches
+ (list (origin
+ (method url-fetch)
+ (uri (string-append "https://github.com/libimobiledevice/libimobiledevice"
+ "/commit/1ff3448d2e27f1bac8d2f0af8b8e952854860278.patch"))
+ (file-name "libimobiledevice-python-config.patch")
+ (sha256
+ (base32
+ "1mkwhp8vvhajij29jk3w4rkgcfh8d8waf908drh3076k70hb6i8y")))
+ (origin
+ (method url-fetch)
+ (uri (string-append "https://github.com/libimobiledevice/libimobiledevice"
+ "/commit/eea4f1be9107c8ab621fd71460e47d0d38e55d71.patch"))
+ (file-name "libimobiledevice-python-3.8-compat.patch")
+ (sha256
+ (base32
+ "1zz8v7kgwyq5ck1qp03l29pcmljygnjwls9d6q28nv5pkwa6848w")))))
+
+(define-public libimobiledevice
+ (package
+ (name "libimobiledevice")
+ (version "1.2.0")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "https://www.libimobiledevice.org/downloads/"
+ "libimobiledevice-" version ".tar.bz2"))
+ ;; Note: Remove the 'force-bootstrap' phase and the autoconf
+ ;; inputs below when removing these patches.
+ (patches %libimobiledevice-patches)
+ (sha256
+ (base32
+ "0dqhy4qwj30mw8pwckvjmgnj1qqrh6p8c6jknmhvylshhzh0ssvq"))))
+ (build-system gnu-build-system)
+ (arguments
+ `(#:phases (modify-phases %standard-phases
+ (add-before 'bootstrap 'force-bootstrap
+ (lambda _
+ (delete-file "configure")
+ #t)))))
+ (propagated-inputs
+ `(("openssl" ,openssl-1.0)
+ ("libplist" ,libplist)
+ ("libusbmuxd" ,libusbmuxd)))
+ (inputs
+ `(("python" ,python)))
+ (native-inputs
+ `(("pkg-config" ,pkg-config)
+ ("python-cython" ,python-cython)
+
+ ;; These are required because we patch and bootstrap the build system.
+ ("autoconf" ,autoconf)
+ ("automake" ,automake)
+ ("libtool" ,libtool)))
+ (home-page "https://www.libimobiledevice.org/")
+ (synopsis "Protocol library and tools to communicate with Apple devices")
+ (description "libimobiledevice is a software library that talks the
+protocols to support Apple devices. It allows other software to easily access
+the device's file system, retrieve information about the device and its
+internals, backup/restore the device, manage installed applications, retrieve
+address books, calendars, notes, and bookmarks, and (using libgpod) synchronize
+music and video to the device.")
+ (license license:lgpl2.1+)))
+
+(define-public ifuse
+ (package
+ (name "ifuse")
+ (version "1.1.3")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "https://www.libimobiledevice.org/downloads/"
+ "ifuse-" version ".tar.bz2"))
+ (sha256
+ (base32
+ "1p9a4n36jb194cnp6v57cz2bggwbywaz8pbpb95ch83pzdkdx257"))))
+ (inputs
+ `(("fuse" ,fuse)
+ ("libimobiledevice" ,libimobiledevice)))
+ (native-inputs
+ `(("pkg-config" ,pkg-config)))
+ (build-system gnu-build-system)
+ (home-page "https://www.libimobiledevice.org/")
+ (synopsis "Mount iOS devices")
+ (description "This package provides @command{ifuse}, a command to mount
+iOS devices and access their contents.")
+ (license license:lgpl2.1+)))
+
+(define-public usbmuxd
+ (package
+ (name "usbmuxd")
+ (version "1.1.0")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "https://www.libimobiledevice.org/downloads/"
+ "usbmuxd-" version ".tar.bz2"))
+ (sha256
+ (base32
+ "0bdlc7a8plvglqqx39qqampqm6y0hcdws76l9dffwl22zss4i29y"))))
+ (inputs
+ `(("libplist" ,libplist)
+ ("libusb" ,libusb)
+ ("libimobiledevice" ,libimobiledevice)))
+ (native-inputs
+ `(("pkg-config" ,pkg-config)))
+ (build-system gnu-build-system)
+ (home-page "https://www.libimobiledevice.org/")
+ (synopsis "Multiplex connections over USB to an iOS device")
+ (description "This package provides the @code{usbmuxd} daemon
+which multiplexes connections over USB to an iOS device. To
+users, it means you can sync your music, contacts, photos, etc.
+over USB.")
+ (license license:gpl2+)))
+
(define-public libmtp
(package
(name "libmtp")
- (version "1.1.16")
+ (version "1.1.17")
(source (origin
(method url-fetch)
(uri (string-append "mirror://sourceforge/libmtp/libmtp/" version
"/libmtp-" version ".tar.gz"))
(sha256
(base32
- "185vh9bds6dcy00ycggg69g4v7m3api40zv8vrcfb3fk3vfzjs2v"))))
+ "1p3r38nvdip40ab1h4scj3mzfjkx6kd14szjqyw9r6wz5pslr8zq"))))
(build-system gnu-build-system)
(native-inputs
`(("pkg-config" ,pkg-config)))
+ (inputs
+ `(("libgcrypt" ,libgcrypt)))
(propagated-inputs
;; libmtp.pc refers to all these.
- `(("libgcrypt" ,libgcrypt)
- ("libusb" ,libusb)))
+ `(("libusb" ,libusb)))
(arguments
`(#:configure-flags
- (list (string-append "--with-udev="
+ (list "--disable-static"
+ (string-append "--with-udev="
(assoc-ref %outputs "out")
"/lib/udev"))))
(home-page "http://libmtp.sourceforge.net/")
(define-public hidapi
(package
(name "hidapi")
- (version "0.8.0-rc1")
- (source (origin
- (method url-fetch)
- (uri (string-append "https://github.com/signal11/hidapi/archive/hidapi-"
- version ".tar.gz"))
- (sha256
- (base32
- "0qdgyj9rgb7n0nk3ghfswrhzzknxqn4ibn3wj8g4r828pw07451w"))))
+ (version "0.9.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/libusb/hidapi.git")
+ (commit (string-append "hidapi-" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1p4g8lgwj4rki6lbn5l6rvwj0xlbn1xfh4d255bg5pvgczmwmc4i"))))
(build-system gnu-build-system)
(inputs
`(("libusb" ,libusb)
("automake" ,automake)
("libtool" ,libtool)
("pkg-config" ,pkg-config)))
- (home-page "http://www.signal11.us/oss/hidapi/")
+ (home-page "https://github.com/libusb/hidapi")
(synopsis "HID API library")
(description
"HIDAPI is a library which allows an application to interface with USB and Bluetooth