From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id +ImfEE8RQmF26QAAgWs5BA (envelope-from ) for ; Wed, 15 Sep 2021 17:29:19 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id mbEXDE8RQmHbLgAAbx9fmQ (envelope-from ) for ; Wed, 15 Sep 2021 15:29:19 +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 A9F0C9680 for ; Wed, 15 Sep 2021 17:29:18 +0200 (CEST) Received: from localhost ([::1]:50226 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mQWqb-0006cN-KM for larch@yhetil.org; Wed, 15 Sep 2021 11:29:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43782) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mQWqN-0006bq-BN for guix-patches@gnu.org; Wed, 15 Sep 2021 11:29:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:41423) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mQWqN-0001yV-3H for guix-patches@gnu.org; Wed, 15 Sep 2021 11:29:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mQWqM-0001TX-UQ for guix-patches@gnu.org; Wed, 15 Sep 2021 11:29:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50505] [PATCH v2 03/13] 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: Wed, 15 Sep 2021 15:29:02 +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?= Received: via spool by 50505-submit@debbugs.gnu.org id=B50505.16317196995599 (code B ref 50505); Wed, 15 Sep 2021 15:29:02 +0000 Received: (at 50505) by debbugs.gnu.org; 15 Sep 2021 15:28:19 +0000 Received: from localhost ([127.0.0.1]:52966 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mQWpf-0001S9-Jj for submit@debbugs.gnu.org; Wed, 15 Sep 2021 11:28:19 -0400 Received: from out1.mail.ruhr-uni-bochum.de ([134.147.53.149]:19114) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mQWp6-0001NU-Hq for 50505@debbugs.gnu.org; Wed, 15 Sep 2021 11:27:59 -0400 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 4H8kcB46FJz8S8R for <50505@debbugs.gnu.org>; Wed, 15 Sep 2021 17:27:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ruhr-uni-bochum.de; s=mail-2017; t=1631719658; bh=SomNJd+NHLdxLSZnzY3N/A/dYEnO0Aj6XM2qKvkdD8U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Hq9iN39zcARRIWWeb9kQuz0FhnCXcejCygTqr5v8OA9Y2jfSZqPEmU7j1QCcykae/ DkcqdQORqB6KgxShBmbZWZtNO00uJYjDxvS3Mq9XyIQo8japhYTSQ6xs2j1HWoGdx7 XouQve3i6s8uCWxArRD8hrSUsTtGCp3QhKthajkY= 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 4H8kcB3S4hz8S7v; Wed, 15 Sep 2021 17:27:38 +0200 (CEST) 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 4H8kcB2F7Mz8S7M; Wed, 15 Sep 2021 17:27:38 +0200 (CEST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.1 at mx1.mail.ruhr-uni-bochum.de Received: from xii-04.mg07.ruhr-uni-bochum.de (pm26.mg07.ruhr-uni-bochum.de [10.150.49.41]) by mail2.mail.ruhr-uni-bochum.de (Postfix) with ESMTPSA id 4H8kc96ZSLzDgxf; Wed, 15 Sep 2021 17:27:37 +0200 (CEST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.0 at mail2.mail.ruhr-uni-bochum.de Date: Wed, 15 Sep 2021 17:25:09 +0200 Message-Id: <20210915152519.25572-4-daniel.meissner-i4k@ruhr-uni-bochum.de> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210910112231.6411-1-daniel.meissner-i4k@ruhr-uni-bochum.de> References: <20210910112231.6411-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: , Daniel =?UTF-8?Q?Mei=C3=9Fner?= via Guix-patches From: Daniel =?UTF-8?Q?Mei=C3=9Fner?= via Guix-patches via X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1631719758; 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=iXFviCTJDv2tUphhEN8gOJFQJVmpSqWKqDvKOkVjGsk=; b=aut2U23IFNS4EUAEsrErqfMMwQtAbFSdP2x8cjv5tCl3fSyK9lehvHcZ4D6VIqo/AWMRjn 1tBBJGtPIellakc6XSxpIqsCf+xwe1c6oM6VlXdUl4QYVbuTRN0iZKdor+PVPjgQDG1UVh 4B/RqJlEhvd60MrEV+jQGcYljcKCoWO0XZJA8Z4088lqMDOpzhzczYKEQbgn/oHQT9vr0E gwidc1A01KFS56F7geznz+QK08GXUnb05wxWkU4t7MV5XFdSauUiNB08jwosjVt/Pn9wc1 h0koVnSmbwwdpxJZ9EHZJQS4gIpRk1qmGMYZP0rzEM/E3FjwMBEzt/C+nkLk3Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1631719758; a=rsa-sha256; cv=none; b=LOTd153vE2wj5sxN8HpgiEl5xCk8No0pymFHAWkXHnjscb9vFIRTwlHhQLKNyXAJTfaa55 2je3T3rzrppMANyqHuEMvmasJwe+ZQ88Cw5Fa41yRoD0zJl0GOZIdfaLTgHBp9PS3l+Tto SqLVyn007QZ2A3jQo0sVmhUtPY1vZGTmbDnmCP0cG3tkHRNU2abI8uw9zC92x0qvApFpvG as3zfTIDDkbjgxUdKwtMp5mGi9HiRIGHssRFVWqWtvMGkZAxG0MDd/rxTP8PwYk1tKz3MQ 8NlSJYvGHUrxRgL+fcSQOVHrR9miisrJodmKh1LwI+SC6KEKuegLN9EM3vQRXg== 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=Hq9iN39z; dmarc=pass (policy=none) header.from=gnu.org; 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-Migadu-Spam-Score: 1.10 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ruhr-uni-bochum.de header.s=mail-2017 header.b=Hq9iN39z; dmarc=pass (policy=none) header.from=gnu.org; 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-Migadu-Queue-Id: A9F0C9680 X-Spam-Score: 1.10 X-Migadu-Scanner: scn0.migadu.com X-TUID: qldMeff2B6qF * gnu/packages/python-xyz.scm (python-glcontext): New variable. --- gnu/packages/python-xyz.scm | 58 +++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 659a02e7e6..09df43b41d 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -18888,6 +18888,64 @@ library.") (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'")))))) + (add-before 'check 'prepare-x + (lambda _ + (system "Xvfb :1 &") + (setenv "DISPLAY" ":1"))) + (replace 'check + (lambda* (#:key inputs outputs tests? #:allow-other-keys) + (when tests? + (add-installed-pythonpath inputs outputs) + (invoke "pytest" "tests"))))))) + (inputs + `(("libx11" ,libx11) + ("mesa" ,mesa))) + (native-inputs + `(("xorg-server" ,xorg-server-for-tests) + ("python-pytest" ,python-pytest) + ("python-psutil" ,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.33.0