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 ThQcGZnp0GED+gAAgWs5BA (envelope-from ) for ; Sun, 02 Jan 2022 00:54:01 +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 UNDiFZnp0GFrRQEA9RJhRA (envelope-from ) for ; Sun, 02 Jan 2022 00:54:01 +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 7C10C26E99 for ; Sun, 2 Jan 2022 00:54:00 +0100 (CET) Received: from localhost ([::1]:42816 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n3oCF-0006IH-5H for larch@yhetil.org; Sat, 01 Jan 2022 18:53:59 -0500 Received: from eggs.gnu.org ([209.51.188.92]:43590) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n3oBM-0005TB-EM for guix-patches@gnu.org; Sat, 01 Jan 2022 18:53:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:48069) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n3oBM-0008AY-4w for guix-patches@gnu.org; Sat, 01 Jan 2022 18:53:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n3oBM-00038D-44 for guix-patches@gnu.org; Sat, 01 Jan 2022 18:53:04 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#50505] [PATCH v3 05/12] gnu: Add python-pyglet. 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:04 +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.164108115311890 (code B ref 50505); Sat, 01 Jan 2022 23:53:04 +0000 Received: (at 50505) by debbugs.gnu.org; 1 Jan 2022 23:52:33 +0000 Received: from localhost ([127.0.0.1]:59592 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n3oAn-00035T-0k for submit@debbugs.gnu.org; Sat, 01 Jan 2022 18:52:33 -0500 Received: from out2.mail.ruhr-uni-bochum.de ([134.147.42.229]:54593) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n3oAh-00034M-WC for 50505@debbugs.gnu.org; Sat, 01 Jan 2022 18:52:24 -0500 Received: from mx2.mail.ruhr-uni-bochum.de (localhost [127.0.0.1]) by out2.mail.ruhr-uni-bochum.de (Postfix mo-ext) with ESMTP id 4JRJhd6S2Xz8SNw; Sun, 2 Jan 2022 00:52:17 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ruhr-uni-bochum.de; s=mail-2017; t=1641081137; bh=7gSByNrfoOTinKCrwnKy7gsxNSQWCN4p+1cpg5xZAcE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=coD8pARb4AeEZWlxw34bCCMnW8MvNXxxR4DEzVoHSicxqwxCJRU6hV86CoGMvwoZd hejFoB5ArbCGu/alDCGhVQKQZCfVP7djpMPeNaqg4oTt1MKzC9aXg3mhGZHdlCOjJh K3rNFbZUIheOB03ntMVunpuFaXzEceUgXataYv5U= Received: from out2.mail.ruhr-uni-bochum.de (localhost [127.0.0.1]) by mx2.mail.ruhr-uni-bochum.de (Postfix idis) with ESMTP id 4JRJhd5Yh3z8SNS; Sun, 2 Jan 2022 00:52:17 +0100 (CET) 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 out2.mail.ruhr-uni-bochum.de (Postfix mi-int) with ESMTP id 4JRJhd3Cqxz8SNC; Sun, 2 Jan 2022 00:52:17 +0100 (CET) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.104.1 at mx2.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 4JRJhc6VdWzDgyZ; Sun, 2 Jan 2022 00:52:16 +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:48 +0100 Message-Id: <20220101235155.5754-6-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=1641081240; 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=jF7Fx4j9+Gb79+EER8gVQzOhdNGlJfRlNAc+5aqXthQ=; b=sQHMTn2SfAzVFMEXD9fNJkC9Z7Hs2Bf1RMMIPWWjs242T+K8j7Srt2a8xliddM0buTdURE AHGLVaYjiYnff8fja244ojZ3m4dv9ugfAUhXN3TYqwt56zk3zY1C0oBgX+gRDEdI0tuPVa w0W7cQraSuUvCdtwRdp9ZxpWCQiQlACM6WxkYKAz7bNrM3DinfvfzBCrdPaPkaY17D4cY/ zouHzqlPqXfSnZPNazYU2mL/fg8tpzUzytQiCs16j/eh14Z1hGWD2k/Xs+436bdAtrET6C bLbQ9v1S/kAxc8VrYvVEw7qjOWX40ugtVG34giufZjMV3NkodfIS6H+GJsVwog== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1641081240; a=rsa-sha256; cv=none; b=msfUrAIQbtSJAVOw+ZInD/l+r9iy5jduMLZfgCNVFCXruQrwwO6bb6QS4QPlMdwiGPnVHY hPOdrKGhc+0SOkk60and2h+dNZOq/s0szUSr6zT1IyJ0emfwC6h1RdLWjQETYZaKQ9g1tj EjHMSQ2EOOaWDY4ebqSvHTLC2cLox4Vw1ZqiOQSylfvSlDvTGlkEq5Opajuoj/dC88XTAm 4W1LDTrZOqKYePNdHemmt79nKU61t9embQuLPlF//pTaljGnr324EzVHr8HneaCDNHg6+s xlRVJvfipWxXkk448kVIbgtFrNRdC3ivSvc6yx/J8heXV2MXT09odjnO0DF8oA== 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=coD8pARb; 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=coD8pARb; 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: 7C10C26E99 X-Spam-Score: -1.98 X-Migadu-Scanner: scn1.migadu.com X-TUID: oNe3x1s5ksaC * gnu/packages/python-xyz.scm (python-pyglet): New variable. --- gnu/packages/python-xyz.scm | 55 +++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 21cf780338..e0d65daf91 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -19633,6 +19633,61 @@ (define-public python-moderngl also written in C++ for high performance.") (license license:expat))) +(define-public python-pyglet + (package + (name "python-pyglet") + (version "1.5.18") + (source + (origin + (method url-fetch) + (uri (pypi-uri "pyglet" version ".zip")) + (sha256 + (base32 + "044ib8x6pv5rjwj210hq37ry7vi5bizmqkkv1zj8967prk5ii8sq")))) + (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* '("pyglet/gl/lib_glx.py") + (("'GL'") + (string-append "\"" (assoc-ref inputs "mesa") + "/lib/libGL.so\"")) + (("'GLU'") + (string-append "\"" (assoc-ref inputs "glu") + "/lib/libGLU.so\""))) + (substitute* '("pyglet/font/freetype_lib.py") + (("'freetype'") + (string-append "\"" (assoc-ref inputs "freetype") + "/lib/libfreetype.so\""))) + (substitute* '("pyglet/font/fontconfig.py") + (("'fontconfig'") + (string-append "\"" (assoc-ref inputs "fontconfig") + "/lib/libfontconfig.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/unit"))))))) + (inputs + `(("mesa" ,mesa) + ("glu" ,glu) + ("freetype" ,freetype) + ("fontconfig" ,fontconfig))) + (native-inputs + (list unzip python-pytest xorg-server-for-tests)) + (home-page "https://pyglet.readthedocs.io") + (synopsis "Cross-platform windowing and multimedia Python library") + (description + "Pyglet is a Python library for developing games and other visually-rich +applications. It supports windowing, user interface event handling, +Joysticks, OpenGL graphics, loading images and videos, and playing sounds and +music. All of this with a friendly Pythonic API that's simple to learn.") + (license license:bsd-3))) + (define-public python-rencode (package (name "python-rencode") -- 2.34.0