From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [PATCH] Add pyusb. Date: Thu, 07 Apr 2016 22:49:22 +0200 Message-ID: <874mbdb0vh.fsf@gnu.org> References: <87r3etoj7j.fsf@elephly.net> <20160329212748.7741d2be@openmailbox.org> <87h9foo41b.fsf@elephly.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42590) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aoGro-0000kZ-Jq for guix-devel@gnu.org; Thu, 07 Apr 2016 16:49:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aoGrl-0004iI-D2 for guix-devel@gnu.org; Thu, 07 Apr 2016 16:49:28 -0400 In-Reply-To: <87h9foo41b.fsf@elephly.net> (Ricardo Wurmus's message of "Wed, 30 Mar 2016 08:47:44 +0200") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Ricardo Wurmus Cc: guix-devel Ricardo Wurmus skribis: > From 2f190da0d812501a4ab3db94a99ac8f7c6698cbc Mon Sep 17 00:00:00 2001 > From: Ricardo Wurmus > Date: Tue, 29 Mar 2016 09:06:09 +0200 > Subject: [PATCH] gnu: Add python-pyusb. > > * gnu/packages/libusb.scm (python-pyusb, python2-pyusb): New variables. [...] > + (lambda* (#:key inputs #:allow-other-keys) > + (substitute* "usb/libloader.py" > + (("lib =3D locate_library\\(candidates, find_library\\)") > + (string-append > + "lib =3D \"" > + (car (find-files (assoc-ref inputs "libusb") > + (lambda (file stat) > + (and ((file-name-predicate > + "^libusb-.*\\.so\\..*") file = stat) > + (not (symbolic-link? file)))))) Maybe (with SRFI-1): (find (negate symbolic-link?) (find-files (assoc-ref inputs "libusb") "^libusb-.*\\.so\\..*")) But really this is nitpicking, the patch should go in. :-) Ludo=E2=80=99.