From patchwork Fri Apr 23 17:28:09 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinicius Monego X-Patchwork-Id: 28829 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 1027727BC7D; Fri, 23 Apr 2021 18:29:41 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id A168627BC7C for ; Fri, 23 Apr 2021 18:29:40 +0100 (BST) Received: from localhost ([::1]:60620 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lZzcZ-00065N-S0 for patchwork@mira.cbaines.net; Fri, 23 Apr 2021 13:29:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44908) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lZzbz-0005n7-G4 for guix-patches@gnu.org; Fri, 23 Apr 2021 13:29:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55434) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lZzbz-00023H-84 for guix-patches@gnu.org; Fri, 23 Apr 2021 13:29:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lZzbz-00037I-4M for guix-patches@gnu.org; Fri, 23 Apr 2021 13:29:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47976] [PATCH 03/10] gnu: Add python-qasync. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 23 Apr 2021 17:29:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47976 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 47976@debbugs.gnu.org Cc: Vinicius Monego Received: via spool by 47976-submit@debbugs.gnu.org id=B47976.161919893811942 (code B ref 47976); Fri, 23 Apr 2021 17:29:03 +0000 Received: (at 47976) by debbugs.gnu.org; 23 Apr 2021 17:28:58 +0000 Received: from localhost ([127.0.0.1]:38742 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lZzbu-00036Y-AB for submit@debbugs.gnu.org; Fri, 23 Apr 2021 13:28:58 -0400 Received: from mout02.posteo.de ([185.67.36.66]:35533) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lZzbs-00036C-A6 for 47976@debbugs.gnu.org; Fri, 23 Apr 2021 13:28:56 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 984E62400FE for <47976@debbugs.gnu.org>; Fri, 23 Apr 2021 19:28:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1619198930; bh=UdiS53ID/IoDJZBOSf6u6ONzwCYLF1H4wuC1s5/Tw9Q=; h=From:To:Cc:Subject:Date:From; b=mSkRgIsvgbjiHfkhw9Spjro/By8xhBq4jK4i7y3juFULJrvrKgZphQYiTqYXFoq4J pj8dvYAW6YiMa5/gY0tmRY8axRnaoxB5NmtT4uhfrmb7zht2On3vt0TUECt9cSXx/N 60X2DBPEX1NV4kQsBskK0ROV6h+mJVh9vEWVTJniIGqXutfaOttTH4NbnZEGk4KPpD ievbuMtax2uXjYWQ7npEZJV1z2PGaFwSA5vQoNtskFPjNhUKhHEp4I9obLozwbjcnx izbkaiXyPP3zunL5hvJsy8pcBGQQ00rwnobbMO3r/WD57+2szErd0hauvL3nj1PvEZ FSGznIb3Y+ySA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4FRh8x2VWbz6tmW; Fri, 23 Apr 2021 19:28:49 +0200 (CEST) From: Vinicius Monego Date: Fri, 23 Apr 2021 17:28:09 +0000 Message-Id: <20210423172816.73579-3-monego@posteo.net> In-Reply-To: <20210423172816.73579-1-monego@posteo.net> References: <20210423172816.73579-1-monego@posteo.net> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/python-xyz.scm (python-qasync): New variable. --- gnu/packages/python-xyz.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index e3e55c010a..66f9a98091 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -12473,6 +12473,41 @@ and PySide6. It is intended for use in mathematics, scientific or engineering applications.") (license license:expat))) +(define-public python-qasync + (package + (name "python-qasync") + (version "0.15.0") + (source + (origin + ;; There are no tests in the PyPI tarball. + (method git-fetch) + (uri (git-reference + (url "https://github.com/CabbageDevelopment/qasync/") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0va9h6v102d7mxz608banjc0l0v02dq3ywhr5i4nqaxx3qkazc2l")))) + (build-system python-build-system) + (arguments + `(#:test-target "pytest" + #:phases + (modify-phases %standard-phases + (add-before 'check 'set-qpa + (lambda _ + (setenv "QT_QPA_PLATFORM" "offscreen") + #t))))) + (native-inputs + `(("python-pytest" ,python-pytest) + ("python-pytest-runner" ,python-pytest-runner))) + (propagated-inputs + `(("python-pyqt" ,python-pyqt))) + (home-page "https://github.com/CabbageDevelopment/qasync") + (synopsis "Implementation of the PEP 3156 Event-Loop with Qt") + (description + "@code{qasync} allows coroutines to be used in PyQt/PySide applications +by providing an implementation of the PEP 3156 event-loop.") + (license license:bsd-3))) + (define-public python-editor (package (name "python-editor")