From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id iF8DLgOJtV8sMQAA0tVLHw (envelope-from ) for ; Wed, 18 Nov 2020 20:50:11 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id OFfnKQOJtV9hNQAA1q6Kng (envelope-from ) for ; Wed, 18 Nov 2020 20:50:11 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id D14169400BF for ; Wed, 18 Nov 2020 20:50:10 +0000 (UTC) Received: from localhost ([::1]:45960 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kfUP2-0004WH-Ld for larch@yhetil.org; Wed, 18 Nov 2020 15:50:08 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:33400) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kfUOw-0004W2-NW for guix-patches@gnu.org; Wed, 18 Nov 2020 15:50:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:53299) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kfUOw-0005Kr-Em for guix-patches@gnu.org; Wed, 18 Nov 2020 15:50:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kfUOw-0002gF-Bk for guix-patches@gnu.org; Wed, 18 Nov 2020 15:50:02 -0500 Subject: bug#44512: [PATCH] gnu: Add python-telethon. Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-To: guix-patches@gnu.org Resent-Date: Wed, 18 Nov 2020 20:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 44512 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Adam Kandur Cc: 44512-done@debbugs.gnu.org Mail-Followup-To: 44512@debbugs.gnu.org, efraim@flashner.co.il, rndd@tuta.io Received: via spool by 44512-done@debbugs.gnu.org id=D44512.160573257610261 (code D ref 44512); Wed, 18 Nov 2020 20:50:02 +0000 Received: (at 44512-done) by debbugs.gnu.org; 18 Nov 2020 20:49:36 +0000 Received: from localhost ([127.0.0.1]:36612 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kfUOW-0002fR-7R for submit@debbugs.gnu.org; Wed, 18 Nov 2020 15:49:36 -0500 Received: from flashner.co.il ([178.62.234.194]:60494) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kfUOT-0002fD-Vn for 44512-done@debbugs.gnu.org; Wed, 18 Nov 2020 15:49:35 -0500 Received: from localhost (unknown [141.226.15.169]) by flashner.co.il (Postfix) with ESMTPSA id CB9D5402E0; Wed, 18 Nov 2020 20:49:27 +0000 (UTC) Date: Wed, 18 Nov 2020 22:48:38 +0200 From: Efraim Flashner Message-ID: <20201118204838.GB2306@E5400> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Bn2rw/3z4jIqBvZU" Content-Disposition: inline In-Reply-To: X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: -2.61 X-TUID: eufGSnHE8isE --Bn2rw/3z4jIqBvZU Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I made a couple of changes before pushing the patch On Sun, Nov 08, 2020 at 10:13:16AM +0100, Adam Kandur via Guix-patches via = wrote: >=20 >=20 > From 40a037719317f943e4d311e6c03b1398feaffe7b Mon Sep 17 00:00:00 2001 > From: Adam > Date: Sun, 8 Nov 2020 12:10:32 +0300 > Subject: [PATCH] gnu: Add python-telethon. >=20 > * gnu/packages/python-xyz.scm (python-telethon): New variable. > --- > gnu/packages/python-xyz.scm | 23 +++++++++++++++++++++++ > 1 file changed, 23 insertions(+) >=20 > diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm > index 5bbd547..d7dfaf2 100644 > --- a/gnu/packages/python-xyz.scm > +++ b/gnu/packages/python-xyz.scm > @@ -22560,6 +22560,29 @@ a Python library to convert RELAX NG schemata in= Compact syntax (rnc) to > equivalent schemata in the XML-based default RELAX NG syntax.") > (license license:expat))) > =20 > +(define-public python-telethon > + (package > + (name "python-telethon") We normally put this after the source, so I moved it there. > + (build-system python-build-system) > + (propagated-inputs > + `(("python-rsa" ,python-rsa) > + ("python-pyaes" ,python-pyaes) > + ("python-pytest" ,python-pytest))) pytest should be a native-input. I also added python-pytest-asyncio and python-pytest-trio to native-inputs. > + (version "v1.17.5") the 'v' isn't part of the version string. Instead the 'commit' as part of the source becomes '(commit (string-apend "v" version))' > + (source > + (origin > + (method git-fetch) > + (uri (git-reference > + (url "https://github.com/LonamiWebs/Telethon") > + (commit version))) I see you noticed the pypi release didn't come with tests :) > + (file-name (git-file-name name version)) > + (sha256 > + (base32 "0l9fhdrq576vllgi9aam45xzw5xi6jhgdv5zz8i4ygssdp7cm8jl"))= )) I replaced the 'check phase with a phase which runs (invoke "py.test" "-v") > + (home-page "https://docs.telethon.dev") > + (synopsis "Telethon is an asyncio Python 3 MTProto library to intera= ct with Telegram's API as a user or through a bot account (bot API alternat= ive).") > + (description "Telegram is a popular messaging application. This libr= ary is meant to make it easy for you to write Python programs that can inte= ract with Telegram. Think of it as a wrapper that has already done the heav= y job for you, so you can focus on developing an application.") > + (license license:expat))) I wasn't a fan of the synopsis or description, so I took the synopsis which came from 'guix import pypi pypi telethon' and I shortened the description to mostly just include that it interacts with Telegram. > + > (define-public python-citeproc-py > (package > (name "python-citeproc-py") > --=20 > 2.28.0 >=20 Thanks for the patch! Pushed. --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --Bn2rw/3z4jIqBvZU Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAl+1iKYACgkQQarn3Mo9 g1Hy0RAAuo87vK209ZKedUnlo24PwrIgcelvoChaEffS0aKWhFITRVpWvalcbyC5 0mj09HMHSXtb+stiSZehF1eUg3RQWX5+xwL29TtQMH8s26k/UFQQaB366v7LjrCD wpdKpeQO8BgF09HlEyrEZglBl1Af/XyT52Dfxs/TlxD4tNw9DbwJgnF89WuluAck hdv1V8kbRQ2ozYK+CUDm4C5fkIozN1mvXfqepJdcxBGfgi7Se86DyMuBh0S4rn8e Tfid32bnaoSA2OM/UrGFBTxebe78YlMG7CwqLKB+kDuCGQUK3sTbUn+Bi72/X6U1 2QqSo5zJvmq5b8WLnVr5OSi9wtY8QOTvOcu5oUXRw8ZYRfEesTdUzAb3TnC1MJZ6 3zv2p9baY54yRTWAI5VzE+MXh6UL/Njf2RmfMql7qp4dH+ci7bViVDrmfnh6QrQJ Kjy0MfTOImktTO2WX1LziTTir6zYyptbqOuHpA9cj8g9YyJtnYBkNKtHPLg95CRz KXD83rHOGKdvMFqlK2wSMbHONBGSj9aocBRy7D4ClklhIBzgkY2/TFOregaBv1Hu o6rLLfBO8t+/UlF0e9byeaR00Cw/CiglyvfjCsMNWwEs0ujJfO0WfOuChpEzhB42 MAzJJloG2HaE45h2VED8rkte41w0J721a2kJKovg/SsjZl6o4JU= =5zer -----END PGP SIGNATURE----- --Bn2rw/3z4jIqBvZU--