From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34162) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ekQoM-0007U4-CM for guix-patches@gnu.org; Sat, 10 Feb 2018 03:47:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ekQoI-0008SY-CC for guix-patches@gnu.org; Sat, 10 Feb 2018 03:47:06 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:56352) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ekQoI-0008Ry-7F for guix-patches@gnu.org; Sat, 10 Feb 2018 03:47:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ekQoH-0000G8-O1 for guix-patches@gnu.org; Sat, 10 Feb 2018 03:47:01 -0500 Subject: [bug#30305] [PATCH] gnu: Add python-send2trash. Resent-Message-ID: From: Oleg Pykhalov References: <874ln2yx6i.fsf@gmail.com> <87o9l25eg0.fsf@gnu.org> <87vaf5vrrn.fsf@gmail.com> <873729yg5c.fsf@gnu.org> Date: Sat, 10 Feb 2018 11:46:09 +0300 In-Reply-To: <873729yg5c.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Fri, 09 Feb 2018 23:03:43 +0100") Message-ID: <87sha9mdv2.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 30305@debbugs.gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable ludo@gnu.org (Ludovic Court=C3=A8s) writes: =20 >> + (description "This package provides a Python library to send file= s to the >> +user's Trash directory.") >=20 > s/Trash/@file{~/Trash}/ Maybe =E2=80=9C@file{@var{XDG_DATA_HOME}/Trash}=E2=80=9D? Could be not a = =E2=80=9C~=E2=80=9D, because the library uses =E2=80=9CXDG_DATA_HOME=E2=80=9D variable. From the source= tarball: =2D-8<---------------cut here---------------start------------->8--- ./send2trash/plat_other.py:49:HOMETRASH_B =3D op.join(XDG_DATA_HOME, b'Tras= h') =2D-8<---------------cut here---------------end--------------->8--- > You=E2=80=99d also need to set the =E2=80=98python2-variant=E2=80=99 pr= operty here because your > python2 variant is not a direct translation (see other packages in this > file as an example). =2D-8<---------------cut here---------------start------------->8--- (define-public python2-send2trash (package =E2=80=A6 (properties `((python2-variant . ,(delay python-send2trash)))))) =2D-8<---------------cut here---------------end--------------->8--- Thanks, Oleg. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEc+OyAXw1EaDPCmAPckbhHGm3lWkFAlp+sVEACgkQckbhHGm3 lWlz3RAApACx+Arwb5byJf3TU/cZQnzxuVT3bDqaSam0fc7I6QODd7TiyP9uhwl1 8TzcsBO7OC6Niq38TtLGow/GPFoMVqK1Vnqsu7Y3atL2WvSSt7AhnBTQmSzi4jWK 3rsnt7IWb6Nx/Z6zXbkHDJUKXObJOikrqOZvOLxE1HMiwDR8LmgyYV2scV7jXAOa nr+6GINcw/0dsxkk0cB544kPt04AX3pVFMY3UIXpdYzoCtJRPZ2d5aZcHbMbJdf9 MUDm0ruSv2MVRYjfSlQpGOSXgkbwUBXVIERKThASTUMAko91mljd+g1ix20M3yRp /wMyTBYqD1SRLvWKK7IZ6pdICLNQNOSFYXVcsG+1XRrXkpGz12h/RLIRFt9IeAJU X3R8W+d+nQyxnzSqczB60xTgf+WRV3dwZfvpgCcgAm3wodGOqiIZOLDRfcEZs/4u obqKIuqeilLCSlXScCNhYkl9OcgM0aGqtyJQBJQuR1HGlFVhZyNO1sy5hhE+wVX7 BqbM26POuVH6dqmVHmcrW6SHXCyG8v0jfoAueo2Y3HBYNEGn1Gxep/hDJWNrMGYi ykatezd2mk3MvGEpJBbO6wh28nXNP5IdJg9u7h/KBCbfrUDoTSgkn7LCPqjFd+Dc VqhB9lxVruqKOKmLzicM4VLEiDV8f1+m4PEY0b4DK8hHlhrRZms= =VpoL -----END PGP SIGNATURE----- --=-=-=--