From patchwork Sat Jan 1 23:51:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Daniel_Mei=C3=9Fner?= X-Patchwork-Id: 35868 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 827ED27BBEA; Sat, 1 Jan 2022 23:53:29 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 1425327BBE9 for ; Sat, 1 Jan 2022 23:53:29 +0000 (GMT) Received: from localhost ([::1]:41686 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n3oBi-0005TV-KR for patchwork@mira.cbaines.net; Sat, 01 Jan 2022 18:53:26 -0500 Received: from eggs.gnu.org ([209.51.188.92]:43586) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n3oBL-0005SN-L7 for guix-patches@gnu.org; Sat, 01 Jan 2022 18:53:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:48067) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n3oBL-0008AL-Ay for guix-patches@gnu.org; Sat, 01 Jan 2022 18:53:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n3oBL-00037y-A8 for guix-patches@gnu.org; Sat, 01 Jan 2022 18:53:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#50505] [PATCH v3 03/12] gnu: Add python-glcontext. Resent-From: Daniel =?utf-8?q?Mei=C3=9Fner?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 01 Jan 2022 23:53:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50505 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 50505@debbugs.gnu.org Cc: Daniel =?utf-8?q?Mei=C3=9Fner?= , Xinglu Chen , Liliana Marie Prikler Received: via spool by 50505-submit@debbugs.gnu.org id=B50505.164108114011828 (code B ref 50505); Sat, 01 Jan 2022 23:53:03 +0000 Received: (at 50505) by debbugs.gnu.org; 1 Jan 2022 23:52:20 +0000 Received: from localhost ([127.0.0.1]:59583 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n3oAe-00034i-JQ for submit@debbugs.gnu.org; Sat, 01 Jan 2022 18:52:20 -0500 Received: from out1.mail.ruhr-uni-bochum.de ([134.147.53.149]:55232) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n3oAd-00034A-JT for 50505@debbugs.gnu.org; Sat, 01 Jan 2022 18:52:19 -0500 Received: from mx1.mail.ruhr-uni-bochum.de (localhost [127.0.0.1]) by out1.mail.ruhr-uni-bochum.de (Postfix mo-ext) with ESMTP id 4JRJhZ0yxcz8SH2; Sun, 2 Jan 2022 00:52:14 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ruhr-uni-bochum.de; s=mail-2017; t=1641081134; bh=VQRLo1qWvazucoc8JaFvarDlNjolA3HmpkZAIci7sBM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=j+z2zPPktoNaAvfrh1VTM843smE+SMbzkwv8VusXZAipkrwhM7MyuLNlaB4AYUHZb fLBPA0fPLpgK2l9xXkNtm14z/+tYHikQar+DdT/mYiCDu/couLOIpgxSRZ3g0Gxaas VCCC5qe9jzEd5w0D5k9KTPmQETetysNTPNmaiUYU= Received: from out1.mail.ruhr-uni-bochum.de (localhost [127.0.0.1]) by mx1.mail.ruhr-uni-bochum.de (Postfix idis) with ESMTP id 4JRJhZ03T6z8SGZ; Sun, 2 Jan 2022 00:52:14 +0100 (CET) X-RUB-Notes: Internal origin=134.147.42.236 X-Envelope-Sender: Received: from mail2.mail.ruhr-uni-bochum.de (mail2.mail.ruhr-uni-bochum.de [134.147.42.236]) by out1.mail.ruhr-uni-bochum.de (Postfix mi-int) with ESMTP id 4JRJhY60yVz8SGR; Sun, 2 Jan 2022 00:52:13 +0100 (CET) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.104.1 at mx1.mail.ruhr-uni-bochum.de Received: from think.local (dslb-002-204-223-044.002.204.pools.vodafone-ip.de [2.204.223.44]) by mail2.mail.ruhr-uni-bochum.de (Postfix) with ESMTPSA id 4JRJhY46mnzDgyf; Sun, 2 Jan 2022 00:52:13 +0100 (CET) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.104.1 at mail2.mail.ruhr-uni-bochum.de Date: Sun, 2 Jan 2022 00:51:46 +0100 Message-Id: <20220101235155.5754-4-daniel.meissner-i4k@ruhr-uni-bochum.de> X-Mailer: git-send-email 2.34.0 In-Reply-To: <20220101235155.5754-1-daniel.meissner-i4k@ruhr-uni-bochum.de> References: <20220101235155.5754-1-daniel.meissner-i4k@ruhr-uni-bochum.de> 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" Reply-to: Daniel =?utf-8?q?Mei=C3=9Fner?= X-ACL-Warn: , =?utf-8?q?Daniel_Mei=C3=9Fner_via_Guix-patches?= X-Patchwork-Original-From: =?utf-8?q?Daniel_Mei=C3=9Fner_via_Guix-patches?= via From: =?utf-8?q?Daniel_Mei=C3=9Fner?= X-getmail-retrieved-from-mailbox: Patches * gnu/packages/python-xyz.scm (python-glcontext): New variable. --- gnu/packages/python-xyz.scm | 53 +++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index deff85e797..d8e6fa070e 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -19555,6 +19555,59 @@ (define-public python-pyopengl-accelerate (description "This is the Cython-coded accelerator module for PyOpenGL."))) +(define-public python-glcontext + (package + (name "python-glcontext") + (version "2.3.4") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/moderngl/glcontext") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1m2zkl696vqmgrd5k1c5kl0krk6qgjgsz88qhahwva0l40bswvhp")))) + (build-system python-build-system) + (arguments + '(#:phases + (modify-phases %standard-phases + (add-before 'build 'fix-lib-paths + (lambda* (#:key inputs outputs #:allow-other-keys) + (let ((mesa (assoc-ref inputs "mesa")) + (libx11 (assoc-ref inputs "libx11"))) + (substitute* '("glcontext/x11.cpp" "glcontext/egl.cpp") + (("\"libGL.so\"") + (string-append "\"" mesa "/lib/libGL.so\"")) + (("\"libEGL.so\"") + (string-append "\"" mesa "/lib/libEGL.so\"")) + (("\"libX11.so\"") + (string-append "\"" libx11 "/lib/libX11.so\""))) + (substitute* '("glcontext/__init__.py") + (("find_library\\('GL'\\)") + (string-append "'" mesa "/lib/libGL.so'")) + (("find_library\\('EGL'\\)") + (string-append "'" mesa "/lib/libEGL.so'")) + (("find_library\\(\"X11\"\\)") + (string-append "'" libx11 "/lib/libX11.so'")))))) + (replace 'check + (lambda* (#:key inputs outputs tests? #:allow-other-keys) + (when tests? + (system "Xvfb :1 &") + (setenv "DISPLAY" ":1") + (add-installed-pythonpath inputs outputs) + (invoke "pytest" "tests"))))))) + (inputs + (list libx11 mesa)) + (native-inputs + (list xorg-server-for-tests python-pytest python-psutil)) + (home-page "https://github.com/moderngl/glcontext") + (synopsis "Portable OpenGL Context for ModernGL") + (description "Python-glcontext is a library providing an OpenGL +implementation for ModernGL on multiple platforms.") + (license license:expat))) + (define-public python-rencode (package (name "python-rencode")