From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id qPkcBYzp0GHY+AAAgWs5BA (envelope-from ) for ; Sun, 02 Jan 2022 00:53:48 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id cMpoAozp0GFrRQEA9RJhRA (envelope-from ) for ; Sun, 02 Jan 2022 00:53:48 +0100 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 AB21F26DA1 for ; Sun, 2 Jan 2022 00:53:47 +0100 (CET) Received: from localhost ([::1]:41686 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n3oC2-0005TV-Mw for larch@yhetil.org; Sat, 01 Jan 2022 18:53:46 -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 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@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?= From: =?utf-8?q?Daniel_Mei=C3=9Fner_via_Guix-patches?= via X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1641081227; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=wTWOTHXP/9X01YoTWd/I/+WgedoEPkZR7xv17Fl6ycg=; b=D5bFj4NdDYwT2b71L9cejJRjb/CvjFTXiRMHKudPcwEj9KmASeHp6MdGLFBNjhFUB++G1A 4VUhjMX1U2nd8rlmL/ztzLGPidtkvKLOCAge8SjCVG3A+ygwRnkPcHF1yYtkM5XzCSB2Dk bArwFMqMQz8vvfZPkC1yADNzMWaUMa8ksYfNqtlB7sYGKQxdDqRq6idjkMoNWLA38nc+v4 +oWJwDhrlIkNnhdKG6mvEcswNzf095R6wssCol+9JoP57QlRD6RKtVtWsToHnEkYqwEpqy /NYgsXkpdwTGIlbN+aDNZd6BbHWLCHnV9WAz+tARo0qUXJapUTEiGgpSt72bQg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1641081227; a=rsa-sha256; cv=none; b=LXhqf6vm39xegAWH+cOAgOR/4hl7nvclDnD7YJhghefdvrCQgIv7Zk6cf9q2aKG+/DeUXq iCfWf1Q36IPVrCtEoqMBZVPysj+P4wHppwO6e/GpxMPq6WXDu8yraDJK/0nJMOo6dS5RCP BsKjoN9oc8vQ+2LepKWCJxILS3peyhZJLApym36R8xfZLDz1YAWWuh7w2iuCXkM4Z3DVkq cbkbl2HAwG4AzFFpB9w6pfPo6LYmbBOY4L1Tqrm+f6+pPlD0jzPcUtdGpmJM9sX0+cfx/f Yfw0/KgMuUL2cVRJSNA6vj6dRKi8xhadfkddb5grbZn2PgoIe0ImvPRt4Ak+vA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ruhr-uni-bochum.de header.s=mail-2017 header.b=j+z2zPPk; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -1.98 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ruhr-uni-bochum.de header.s=mail-2017 header.b=j+z2zPPk; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: AB21F26DA1 X-Spam-Score: -1.98 X-Migadu-Scanner: scn1.migadu.com X-TUID: m44P0aBBUwLV * 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") -- 2.34.0