From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id cMV2Jony0GFdJAEAgWs5BA (envelope-from ) for ; Sun, 02 Jan 2022 01:32:09 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 6MbDI4ny0GGSEwEA9RJhRA (envelope-from ) for ; Sun, 02 Jan 2022 01:32:09 +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 230B43FB18 for ; Sun, 2 Jan 2022 01:32:09 +0100 (CET) Received: from localhost ([::1]:54222 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n3on9-0007dl-JF for larch@yhetil.org; Sat, 01 Jan 2022 19:32:07 -0500 Received: from eggs.gnu.org ([209.51.188.92]:48500) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n3on4-0007d1-JH for guix-patches@gnu.org; Sat, 01 Jan 2022 19:32:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:48084) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n3on4-0002sQ-9W for guix-patches@gnu.org; Sat, 01 Jan 2022 19:32:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n3on4-0004B4-0w for guix-patches@gnu.org; Sat, 01 Jan 2022 19:32:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#50505] [PATCH v3 03/12] gnu: Add python-glcontext. Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 02 Jan 2022 00:32:01 +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: Daniel =?UTF-8?Q?Mei=C3=9Fner?= , 50505@debbugs.gnu.org Cc: Xinglu Chen Received: via spool by 50505-submit@debbugs.gnu.org id=B50505.164108348816010 (code B ref 50505); Sun, 02 Jan 2022 00:32:01 +0000 Received: (at 50505) by debbugs.gnu.org; 2 Jan 2022 00:31:28 +0000 Received: from localhost ([127.0.0.1]:59630 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n3omW-0004AA-Gt for submit@debbugs.gnu.org; Sat, 01 Jan 2022 19:31:28 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:45775) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n3omU-00049x-IO for 50505@debbugs.gnu.org; Sat, 01 Jan 2022 19:31:27 -0500 Received: by mail-wr1-f67.google.com with SMTP id v7so62514176wrv.12 for <50505@debbugs.gnu.org>; Sat, 01 Jan 2022 16:31:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=A1RSqr7MQGVM1V4akCvGAcOZ1hO0xf+mc3CXmM3odQ4=; b=S+dQz6gEwuDUkp2XH7gacMQ2ZBpUcyX3b4tOE5yq1DNIYPsijFep7CJISHOl1JnY/u pwcZOiiwh/WeJ1ZEmJfU7LWQbpJ+IKO4l1oQPzl95w0/Vqn/fteEQ03tc+xCxFRwXgpY N053ugA/rQhdL2Sk6MQ7nXaKyYQ51JUfqrV/sxDIe3cL6uGFO5EfFZoDo1NmRBm0ktmb J5KFKAkEueafLUcjQW7HQZbZpQYge5cSIHow+H/jNxHyWtGk5KXLLtja8J6eyzC0D+Gb 3jcCIKA35PThmUANvycjR/ucxzjgR70oGdakPLfXGkthgcQGnPDJWY0X4jj/cKZh1g5p +G6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=A1RSqr7MQGVM1V4akCvGAcOZ1hO0xf+mc3CXmM3odQ4=; b=UwFHcRzeaVk+rRhwxvmIi6Aodc9283yuH0yto/ttpP/IElCPgxUVvC7QZpORqz2Z0w Oqykph9YYH6mqOTg0fFR6Y1Ru6BcCUzKal6H+lvP7nNl4bmnYuHMXIqEkMU3DL6GaaP6 o7EF3JrwZiCuzwfJNzh96vTOBw1RYzkpCUySYdvAjeB8/g+mMq8FgeI+9jnn9HrSWoeK V19ir5Oj+zevJoWHuSmOg+6ZfgpJt+Di9u9iNtY4Gl8PQBIgyEu/Ebwuopv8Q9JZ/5Wy fEWUytXm/IJ/EGS/sHfGL4IIiT6rPL3sQAmsu0IZj2Gkzq/PCfPTYP+UzoFMQNCzCO+k KVzA== X-Gm-Message-State: AOAM531uUXyIZ0d5hXJH/4qWZt8YEJ1ty1JYSPwLldNDQD2ySGreCYBe Y3+JuqlM84LZW1Z0zkupKVI= X-Google-Smtp-Source: ABdhPJyaiiQoL1RsoLSO4+qLlZCEsdUIOJh/rAEwyb3ERT5xMYdP6kNyHDxj5phJPCvXrSsekpSF2w== X-Received: by 2002:a5d:6d49:: with SMTP id k9mr25724734wri.530.1641083480646; Sat, 01 Jan 2022 16:31:20 -0800 (PST) Received: from nijino.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id c12sm8846941wrr.7.2022.01.01.16.31.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 01 Jan 2022 16:31:20 -0800 (PST) Message-ID: <79a030a27221f4091e006457bec898ea98106c10.camel@gmail.com> From: Liliana Marie Prikler Date: Sun, 02 Jan 2022 01:31:19 +0100 In-Reply-To: <20220101235155.5754-4-daniel.meissner-i4k@ruhr-uni-bochum.de> References: <20220101235155.5754-1-daniel.meissner-i4k@ruhr-uni-bochum.de> <20220101235155.5754-4-daniel.meissner-i4k@ruhr-uni-bochum.de> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.1 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" 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=1641083529; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: 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=A1RSqr7MQGVM1V4akCvGAcOZ1hO0xf+mc3CXmM3odQ4=; b=gnoq7Qb+FUYSYrvd1oGi6LRAfjZQ6wZ+y+Nt0iT7/RJqagTxIIY2xkCwyyb3YQK2jYz6ck rOefMzoVOrUENImuWkaK9R+3X4QOhh4UUcwyIpsoTX4j4RbOZ/sWceNTkZ/XmmMpu4R7Th np3iPg8mQBFnGfjrCc/R+tI2vvgn2GPHwMem/vwGA6ULqXdL6FWd98kgCfv/PB81oWBhxz 6diupMEQ4pRaY4AY4SIg/tAlcact+ljb0ys6mElvbTBXRr+hi8Ve5L86bEKELDk28JVfXm F8m79oOc7xxFohqQ1sJWjSjNC94R4mfO2iKuJvDriLmfmh9JPl8ygdl8GGaNhw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1641083529; a=rsa-sha256; cv=none; b=oudLPHI+VF6swIZJQSEsvV3LaVW4vbk6vfAmiHA7De3vY+1T0U+W3kAgAsj9QCdZJkuR/V yHP2Cgw9H5RzYIPdcXZXzBQpI4283OlEWKKZNC2HYffYuVn93BLyvC8IrVLQi96DVJYyci 8hGPTZkFEX4HSmV7k+zv9cJa9w1xbzSIv86QulKrLKCWq2pO0sDq8Mwvr2O1+77HylY8hu GBES6n18u3KUBtAaNDdapsF2Nf1P8PzEhZoPP/A40okQBIE/z1L+XROjqseGqjjTFUolZF yyi0MURaY1KdZh/GV9A5xwAuXdSRUda0t/HG19LI2cp/lREpEvrEbxj6yegZzA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=S+dQz6gE; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: -2.98 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=S+dQz6gE; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: 230B43FB18 X-Spam-Score: -2.98 X-Migadu-Scanner: scn0.migadu.com X-TUID: 5Wr7aMbH9qRj Am Sonntag, dem 02.01.2022 um 00:51 +0100 schrieb Daniel Meißner: > * 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'")))))) Use of (assoc-ref inputs input) in new code is discouraged in favour of this-package-input or search-input-file. Leo Famulari started a thread on which of the two to prefer over in guix-devel [1]. My personal opinion is that search-input-file ought to be fine here. [1] https://lists.gnu.org/archive/html/guix-devel/2021-12/msg00240.html