From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id CF4bEOdQO2E/VgEAgWs5BA (envelope-from ) for ; Fri, 10 Sep 2021 14:34:47 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id qEO9C+dQO2ERBAAAB5/wlQ (envelope-from ) for ; Fri, 10 Sep 2021 12:34:47 +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 0BE93CFC3 for ; Fri, 10 Sep 2021 14:34:47 +0200 (CEST) Received: from localhost ([::1]:54600 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mOfjy-0001V7-4X for larch@yhetil.org; Fri, 10 Sep 2021 08:34:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48622) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mOefU-0001ks-0t for guix-patches@gnu.org; Fri, 10 Sep 2021 07:26:07 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:53757) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mOefT-0001Df-Pf for guix-patches@gnu.org; Fri, 10 Sep 2021 07:26:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mOefT-0007wm-8W for guix-patches@gnu.org; Fri, 10 Sep 2021 07:26:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50505] [PATCH 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: Fri, 10 Sep 2021 11:26: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?= Received: via spool by 50505-submit@debbugs.gnu.org id=B50505.163127312830376 (code B ref 50505); Fri, 10 Sep 2021 11:26:03 +0000 Received: (at 50505) by debbugs.gnu.org; 10 Sep 2021 11:25:28 +0000 Received: from localhost ([127.0.0.1]:37041 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mOeeu-0007tq-0x for submit@debbugs.gnu.org; Fri, 10 Sep 2021 07:25:28 -0400 Received: from out1.mail.ruhr-uni-bochum.de ([134.147.53.149]:51629) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mOees-0007t5-GG for 50505@debbugs.gnu.org; Fri, 10 Sep 2021 07:25:27 -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 4H5YSw3rYrz8SL9 for <50505@debbugs.gnu.org>; Fri, 10 Sep 2021 13:25:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ruhr-uni-bochum.de; s=mail-2017; t=1631273120; bh=/Zv7+IK449KTdR1vquOOKRluEtEzvfwQgnGoOSAtB30=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VDssuFtblZ+malpF2RLvNqZZtea3CM6qP9E6qa79UwXpK11FjlKWxwdTSTEW9n/PY GpNzSnq2vJ9MxMxX/wkRa4OxBRNYVNTSDj651NqTMe2eOnPjtSuH8T65ydbgjPcZaZ dXKZXCdLbgIz8okEkb3Kzl4rlMxvZ6AZIf7S2BZI= 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 4H5YSw3BZ9z8SL0; Fri, 10 Sep 2021 13:25:20 +0200 (CEST) X-Envelope-Sender: X-RUB-Notes: Internal origin=134.147.42.236 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 4H5YSw21cMz8SKt; Fri, 10 Sep 2021 13:25:20 +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 4H5YSv6Fj6zDgyg; Fri, 10 Sep 2021 13:25:19 +0200 (CEST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.0 at mail2.mail.ruhr-uni-bochum.de Date: Fri, 10 Sep 2021 13:24:53 +0200 Message-Id: <20210910112502.6466-3-daniel.meissner-i4k@ruhr-uni-bochum.de> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210910112502.6466-1-daniel.meissner-i4k@ruhr-uni-bochum.de> References: <20210910112231.6411-1-daniel.meissner-i4k@ruhr-uni-bochum.de> <20210910112502.6466-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-Mailman-Approved-At: Fri, 10 Sep 2021 08:32:12 -0400 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=1631277287; 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=j5wCla7TxsT6yW1ZYpr7aWtg1FYM+NmPg6NbWcV77+8=; b=arFi38ASRyqh6mvk4keKqAxbvHN1/rAKSl8j7AMf0srtjzjMRpfyW1Sx7IXr29CyU/h8ID FMtld1Dkwwb3AnQM71ns4JS1q1Q6OPHFg8yAt5qOcghXZG5imWAUkfX2rYL+N7Ew5lPuF/ 9W76mEDeOYPpB1Ogv+ZbiWrqOuyH+00sDGLkt/dCQ41PugLSlLl/MtJJFaJIgSn++yD4CX 9/lrC1gpKrcbfBQ/er4q5QfnJeXiQ6snD1LEUQ5UrcOPhLiDLGKNm5vKSUInmOjxqZrG7a ylTPNaQxfHKfBDVcbDjyeGiGWJ8CwIec0qTHRShROmGR7FxLKtb6tt4f1zZe0Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1631277287; a=rsa-sha256; cv=none; b=qKlnUvGEAblhUuT5JUsgCgMdNe7D8IA+SW3M1TX+z6ov+13EYyGCQxmIK0GDeQGh5Z+1Mf H8G26KWvAiBiLsTtE2rhhL1C91Gp8aG9pBX3L+5u021e5YdubaO6MnOsUhawvhXw832fhJ PkvnYml54PFtBJ2MjQ3hbfhy5zDrVdfRMr+w4RJlqNzJRie9qVUFT7Wd7120y+PpiG5I+A MrWPAsCEmfsw2VWbLaSSk9lhG6yXL9aiTJWe+et4AON7BJi09xqyxNTEvBI0WHNoHtauLG 85DFXoyI3ou6rfObDjZdRWBCQlcWQR/5ITfEcFJy5pDVcx+VGTbIlI4gp3uZnw== 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=VDssuFtb; 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: 2.59 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ruhr-uni-bochum.de header.s=mail-2017 header.b=VDssuFtb; 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: 0BE93CFC3 X-Spam-Score: 2.59 X-Migadu-Scanner: scn0.migadu.com X-TUID: zF9QhmfsXRe4 * gnu/packages/python-xyz.scm (python-glcontext): New variable. --- gnu/packages/python-xyz.scm | 46 +++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 75646aec7f..251aad5b61 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -18884,6 +18884,52 @@ 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) + (substitute* '("glcontext/x11.cpp" "glcontext/egl.cpp") + (("\"libGL.so\"") + (string-append "\"" (assoc-ref inputs "mesa") "/lib/libGL.so\"")) + (("\"libEGL.so\"") + (string-append "\"" (assoc-ref inputs "mesa") "/lib/libEGL.so\"")) + (("\"libX11.so\"") + (string-append "\"" (assoc-ref inputs "libx11") "/lib/libX11.so\""))) + (substitute* '("glcontext/__init__.py") + (("find_library\\('GL'\\)") + (string-append "'" (assoc-ref inputs "mesa") "/lib/libGL.so'")) + (("find_library\\('EGL'\\)") + (string-append "'" (assoc-ref inputs "mesa") "/lib/libEGL.so'")) + (("find_library\\(\"X11\"\\)") + (string-append "'" (assoc-ref inputs "libx11") "/lib/libX11.so'"))) + #t)) + ;; tests fail with: Exception: (standalone) XOpenDisplay: cannot open display + (delete 'check)))) + (inputs + `(("libx11" ,libx11) + ("mesa" ,mesa))) + (home-page "https://github.com/moderngl/glcontext") + (synopsis "Portable OpenGL Context for ModernGL") + (description "Python-glcontext is a library providing OpenGL implementation +for ModernGL on multiple platforms.") + (license license:expat))) + (define-public python-rencode (package (name "python-rencode") -- 2.33.0