From patchwork Fri Oct 11 17:40:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sharlatan Hellseher X-Patchwork-Id: 31957 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id AC0E127BBEA; Fri, 11 Oct 2024 18:42:25 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-6.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL, RCVD_IN_VALIDITY_SAFE,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id C36E227BBE2 for ; Fri, 11 Oct 2024 18:42:24 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1szJeO-0000ZE-TC; Fri, 11 Oct 2024 13:42:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1szJeM-0000Yn-49 for guix-patches@gnu.org; Fri, 11 Oct 2024 13:42:02 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1szJeL-0008Cv-RZ; Fri, 11 Oct 2024 13:42:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=jX+4fu04Idj5MI7kQk1gsZaGYGiGpWGwjZnBeUcsZQc=; b=XtXO/YpeLzrtYri+6qCEmN5bGErJCVP6tjnxaImyuUZEM3ALN0mlxt6VHl462rfBlXmJfkzBW/6EoEcxEsrsIwkXywh09EzSQTR8rZmVu6/yDYVeCq8r7uVxhXtCj9nuesjKeKwaasZ56+xiODOqldQSGhgXw4KvY5Nj3x1ZND7XoXIN+VCsQkS+wALp5/MgnPKB0cPV8AkvghEBACtM5jZmWARVV4phiehCLIA85mFVWIWGF5A5m5RtAcbqeSFPDJ6//J2gJWLj82hfTfXp9HCnvDvTBbM3G0UMpqGtdSdCs++u8ewZVhbvVMKP0YU1UdF/sB32TxNDNMpCBE1msQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1szJeM-0007mc-Do; Fri, 11 Oct 2024 13:42:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#73747] [PATCH 1/2] gnu: Add packages/python-graphics module. Resent-From: Sharlatan Hellseher Original-Sender: "Debbugs-submit" Resent-CC: lars@6xq.net, marius@gnu.org, me@bonfacemunyoki.com, sharlatanus@gmail.com, tanguy@bioneland.org, jgart@dismail.de, guix-patches@gnu.org Resent-Date: Fri, 11 Oct 2024 17:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73747 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 73747@debbugs.gnu.org Cc: Sharlatan Hellseher , Lars-Dominik Braun , Marius Bakke , Munyoki Kilyungi , Sharlatan Hellseher , Tanguy Le Carrour , jgart X-Debbugs-Original-Xcc: Lars-Dominik Braun , Marius Bakke , Munyoki Kilyungi , Sharlatan Hellseher , Tanguy Le Carrour , jgart Received: via spool by 73747-submit@debbugs.gnu.org id=B73747.172866849129870 (code B ref 73747); Fri, 11 Oct 2024 17:42:02 +0000 Received: (at 73747) by debbugs.gnu.org; 11 Oct 2024 17:41:31 +0000 Received: from localhost ([127.0.0.1]:35258 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1szJdq-0007li-Pg for submit@debbugs.gnu.org; Fri, 11 Oct 2024 13:41:31 -0400 Received: from mail-ej1-f51.google.com ([209.85.218.51]:54337) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1szJdn-0007lY-7j for 73747@debbugs.gnu.org; Fri, 11 Oct 2024 13:41:29 -0400 Received: by mail-ej1-f51.google.com with SMTP id a640c23a62f3a-a998a5ca499so323911366b.0 for <73747@debbugs.gnu.org>; Fri, 11 Oct 2024 10:41:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728668413; x=1729273213; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=jX+4fu04Idj5MI7kQk1gsZaGYGiGpWGwjZnBeUcsZQc=; b=h3//dCbBwryQoDokI9IN/YHemBnEsUtFGWpqLh1gjzgb1ht2/E0BvsNWPMJRTcEqnK 14zd2VuXzFhKCaFA4sqcPW+6snI1qypoePJ5rrKNqt1iTawzjoNapNGJlppyPv3WBRIA SMcD5OwcgatJ5pUcwzo7xcH494e8o9CXG2Jg9P3U/GYoweVJttu1khNrkRZ7+B5r48zF K9d2y8LhPdovJplObhyREMF1mZnvoF/apJpEAZmmb/+IQrGqmA8ZLeYPKCq2cfUopQ1A kKlPsxf2TZ4SMvM2aIdB0ODFrSJsU2xaVcFdw2KB8723NyJhsQ/vo5kC2eYT+cAOQW0K ci2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728668413; x=1729273213; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=jX+4fu04Idj5MI7kQk1gsZaGYGiGpWGwjZnBeUcsZQc=; b=w9E6Ql5w7n79yScOmomE1MNzhb9VIQlYKEqPSS60LmN38L2Tm8O7JTh7s81cc7I7Iy Llz34S8lBKRuH5/XDVts7tQlGPgKTkAhkskkRMZzhN3JFAUfssf32ik1swP9389SI/WV ayxM3oY5AXadW0L29/eqLtU5/W+o32TGzZQb8z8bl6X5qSEJLIrs8PnTjHicEU7wa3P8 FldGHbWIx6M7X+PhWXxIrowRieCNbDYsq6RfaTYXHr2G4uAVVSL7jB3sAMWwbAo1hk5O oYRy7DUfr3rRQkSDsqrQemkRlaR4pfszGjmLHM4K1q18EqXymQsc65d9Udt3ulLFgNWJ /vSQ== X-Gm-Message-State: AOJu0YyygWJfMrfRJK1xeipxgnE9pb1AThtteJFO/wjJaX9XjGOd6Z8B uO2+I0sWMS+Rv5EPM8ZyMfJJSYuzMKEgNTKCFK+U2TA/qWswkVi1/u8AFYOr X-Google-Smtp-Source: AGHT+IGZMhJGCDrJ3w/F+RwV+PS/nb1xL5m7nshePFAp5jMxDeLszuJX4MuSI1q/NxouY55SRmzcZg== X-Received: by 2002:a17:907:1c05:b0:a86:82e2:8c64 with SMTP id a640c23a62f3a-a99e3c9d614mr47753766b.35.1728668413012; Fri, 11 Oct 2024 10:40:13 -0700 (PDT) Received: from guxtil.incerto.xyz (cpc100684-bagu15-2-0-cust967.1-3.cable.virginm.net. [86.8.111.200]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a99b804ea59sm117628366b.151.2024.10.11.10.40.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Oct 2024 10:40:12 -0700 (PDT) From: Sharlatan Hellseher Date: Fri, 11 Oct 2024 18:40:09 +0100 Message-ID: X-Mailer: git-send-email 2.46.0 In-Reply-To: References: MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/python-graphics.scm: New file. * gnu/local.mk: Add gnu/packages/python-graphics.scm to the scope. Change-Id: I1d077c838ff1c3c014c3d699b539eaf8befd5084 --- gnu/local.mk | 1 + gnu/packages/python-graphics.scm | 28 ++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 gnu/packages/python-graphics.scm diff --git a/gnu/local.mk b/gnu/local.mk index afff609501..b47d4dc917 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -561,6 +561,7 @@ GNU_SYSTEM_MODULES = \ %D%/packages/python-check.scm \ %D%/packages/python-compression.scm \ %D%/packages/python-crypto.scm \ + %D%/packages/python-graphics.scm \ %D%/packages/python-science.scm \ %D%/packages/python-web.scm \ %D%/packages/python-xyz.scm \ diff --git a/gnu/packages/python-graphics.scm b/gnu/packages/python-graphics.scm new file mode 100644 index 0000000000..ef981bd8d7 --- /dev/null +++ b/gnu/packages/python-graphics.scm @@ -0,0 +1,28 @@ +;;; GNU Guix --- Functional package management for GNU + +(define-module (gnu packages python-graphics) + #:use-module ((guix licenses) #:prefix license:) + #:use-module ((guix build-system python) #:select (pypi-uri)) + #:use-module (guix build-system pyproject) + #:use-module (guix download) + #:use-module (guix gexp) + #:use-module (guix packages) + #:use-module (gnu packages) + #:use-module (gnu packages check) + #:use-module (gnu packages python-build) + #:use-module (gnu packages python-xyz)) + +;;; Commentary: +;;; +;;; Python modules which are meant to be used in GUI creation or mainly are +;;; bindings to low level libraries such as Glue, Mesa, OpenGL, Xorg etc. +;;; +;;; Please: Try to add new module packages in alphabetic order. +;;; +;;; Code: + + +;;; +;;; Avoid adding new packages to the end of this file. To reduce the chances +;;; of a merge conflict, place them above in alphabetical order. +;;; From patchwork Fri Oct 11 17:50:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sharlatan Hellseher X-Patchwork-Id: 31958 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 79A4C27BBE9; Fri, 11 Oct 2024 18:52:20 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-6.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL, RCVD_IN_VALIDITY_SAFE,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 14EB027BBE2 for ; Fri, 11 Oct 2024 18:52:18 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1szJny-0002t8-1Q; Fri, 11 Oct 2024 13:51:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1szJnv-0002sw-WB for guix-patches@gnu.org; Fri, 11 Oct 2024 13:51:56 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1szJnv-0000tn-NP; Fri, 11 Oct 2024 13:51:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=E017XCRy52I3CcLd7cT8BHM72squOERFCPwLllaMvTA=; b=A3xBIKPjtceHvaiJoAwIRERr4/02pBc8daLdUYDaSINOH7f2LYeBAkLc2KMy81rKc8HQPqQVGVgUG9wAwGmVyRBo4Wvo7WUWnhjV3KomDLHqQp3QmYuTaMCJeTvThHrnomEHXVHDFNnid/Hc8vekhrpke+e5bxXtOLfDSSjzEIm/tsYN2Oz+lHc4mRI48j5hw700Jgg1Ji3yfb8T326GZ9pqxGfs/MGFKnICe7sFA5WQtiu/+jD3Uyv8xKjCI/Vc7yzCgvM4nKnY9JcGAYsnOTqTCkMc6MBoeZJCJml4cgXWMmPQjRF6i3SLHH6SXjreITpNgtMSWGrnpMENswGOUA==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1szJo1-0008Ii-Kn; Fri, 11 Oct 2024 13:52:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#73747] [PATCH 2/2] gnu: Add python-pyglet. Resent-From: Sharlatan Hellseher Original-Sender: "Debbugs-submit" Resent-CC: lars@6xq.net, marius@gnu.org, me@bonfacemunyoki.com, sharlatanus@gmail.com, tanguy@bioneland.org, jgart@dismail.de, guix-patches@gnu.org Resent-Date: Fri, 11 Oct 2024 17:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73747 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 73747@debbugs.gnu.org Cc: Daniel =?utf-8?q?Mei=C3=9Fner?= , Morgan Smith , Adam Kandur , Sharlatan Hellseher , Adam Faiz , Lars-Dominik Braun , Marius Bakke , Munyoki Kilyungi , Sharlatan Hellseher , Tanguy Le Carrour , jgart X-Debbugs-Original-Xcc: Lars-Dominik Braun , Marius Bakke , Munyoki Kilyungi , Sharlatan Hellseher , Tanguy Le Carrour , jgart Received: via spool by 73747-submit@debbugs.gnu.org id=B73747.172866910731884 (code B ref 73747); Fri, 11 Oct 2024 17:52:01 +0000 Received: (at 73747) by debbugs.gnu.org; 11 Oct 2024 17:51:47 +0000 Received: from localhost ([127.0.0.1]:35277 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1szJnm-0008IB-K9 for submit@debbugs.gnu.org; Fri, 11 Oct 2024 13:51:47 -0400 Received: from mail-wr1-f54.google.com ([209.85.221.54]:52403) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1szJnh-0008Hn-5b for 73747@debbugs.gnu.org; Fri, 11 Oct 2024 13:51:44 -0400 Received: by mail-wr1-f54.google.com with SMTP id ffacd0b85a97d-37d495d217bso1850533f8f.0 for <73747@debbugs.gnu.org>; Fri, 11 Oct 2024 10:51:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728669022; x=1729273822; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=E017XCRy52I3CcLd7cT8BHM72squOERFCPwLllaMvTA=; b=PhSNBHNAgJqyF/HuBCjN7nekOGNGuqEmWQbVxsntaO9J3XRqEaTlXPN1HHTISE31hF uA5j3Ss+jZ6sf/NFhsFtXCUzEr90VVO4KctJfNcJr4Ttdhpmf+cdSYyl2G4QhQjspJus l+8EI4lcoD/bkfi/fHbYe+JZjAKdPNmawfjyd8ybgcUoDIrcDolc3ml0uAkoFDzMb8K3 5ekuiH4cl0DVC/J6T7J8BTEkWrJpcIUrm+66BwP6k0gcIxtRuXX4Q3GfRtfsklpBZ3qN mr2e61rWdHfxty968AngwscQYWmCD9btRC0P0VP8bwtsoZuEKbY5eF0/ASuwq3S1MyW/ kN7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728669022; x=1729273822; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=E017XCRy52I3CcLd7cT8BHM72squOERFCPwLllaMvTA=; b=kiKSebsbbSEvqb9FLTfj8lL3FsAYW8ZHiZYelVM5TdhNP4EeCXTyYJpkvES+f57OIa AH5DzUJd3c7m+JTH+n2vmWIHwTqDxEDnJB+9KISSt3bpf+RTIzjFSzmOG7Gys+OZpL+r u7+uvKuZdalKHFtfKcA2B1BPACf/uQr5RWiEymaXSZH/Mj9fx7Ft/hWBMojCxEoZFGht ZvGR7tYyJD0rIOyvAofkEiDH/JzWZcvLiEtan+KX2kr2bnEqo06eP4Wnpuew8XacITH8 CB9WsQ6KmdzlueJQqIP0urjYX9oiNtiCZp8Ns41BEgau4PYIs05I9kddkw3untY6GAua l8vQ== X-Gm-Message-State: AOJu0YxNQ7XKf2+ypWHjnc/d65450w7uw5flSyyeZKnyb+n/X8630W2Y M92JPgc/oShpSyQ/zaGQMgZXxqw1lsr7NE1iylm2HQ1C7DySoG9MArTIO7SjcfA= X-Google-Smtp-Source: AGHT+IFKaWmNrLJCqu2wOLcVupeonfDmfMpRfQ/LA+UdfbTkuHPpOui/D5h3XwbtvD6vl03FJaAiCA== X-Received: by 2002:a5d:5f49:0:b0:378:81aa:2653 with SMTP id ffacd0b85a97d-37d5ff28a48mr567321f8f.9.1728669022012; Fri, 11 Oct 2024 10:50:22 -0700 (PDT) Received: from guxtil.incerto.xyz (cpc100684-bagu15-2-0-cust967.1-3.cable.virginm.net. [86.8.111.200]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a99a80bf86bsm234270766b.130.2024.10.11.10.50.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Oct 2024 10:50:21 -0700 (PDT) From: Sharlatan Hellseher Date: Fri, 11 Oct 2024 18:50:17 +0100 Message-ID: <6f47672066456fa0bb4e38e5f052095c4032098d.1728658722.git.sharlatanus@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: References: MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches This project was mentioned in #48467, #50505, #52116 and #67131. It's a refreshed version with most of the bindings implemented. * gnu/packages/python-graphics.scm (python-pyglet): New variable. Change-Id: I78718376bc2945184c32cb013309fbba2b2749d0 Co-Authored-By: Adam Kandur Co-Authored-By: Daniel Meißner Co-Authored-By: Morgan Smith Co-Authored-By: Adam Faiz --- gnu/packages/python-graphics.scm | 152 ++++++++++++++++++++++++++++++- 1 file changed, 151 insertions(+), 1 deletion(-) diff --git a/gnu/packages/python-graphics.scm b/gnu/packages/python-graphics.scm index ef981bd8d7..d0b4a1df74 100644 --- a/gnu/packages/python-graphics.scm +++ b/gnu/packages/python-graphics.scm @@ -1,4 +1,9 @@ ;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2021 Adam Kandur +;;; Copyright © 2021 Daniel Meißner +;;; Copyright © 2021 Morgan Smith +;;; Copyright © 2023 Adam Faiz +;;; Copyright © 2024 Sharlatan Hellseher (define-module (gnu packages python-graphics) #:use-module ((guix licenses) #:prefix license:) @@ -8,9 +13,18 @@ (define-module (gnu packages python-graphics) #:use-module (guix gexp) #:use-module (guix packages) #:use-module (gnu packages) + #:use-module (gnu packages audio) #:use-module (gnu packages check) + #:use-module (gnu packages compression) + #:use-module (gnu packages fontutils) + #:use-module (gnu packages gl) + #:use-module (gnu packages base) + #:use-module (gnu packages gtk) + #:use-module (gnu packages pulseaudio) #:use-module (gnu packages python-build) - #:use-module (gnu packages python-xyz)) + #:use-module (gnu packages python-xyz) + #:use-module (gnu packages video) + #:use-module (gnu packages xorg)) ;;; Commentary: ;;; @@ -21,6 +35,142 @@ (define-module (gnu packages python-graphics) ;;; ;;; Code: +(define-public python-pyglet + (package + (name "python-pyglet") + (version "2.0.18") + (source + (origin + (method url-fetch) + (uri (pypi-uri "pyglet" version)) + (sha256 + (base32 "1p4rizj81vfqxal288m3afbrgk0il3w7k5kmhai2sah8f26j7ybw")))) + (build-system pyproject-build-system) + (arguments + (list + #:test-flags + #~(list "tests" + "--ignore=tests/interactive" + ;; All tests errored + "--ignore=tests/integration/media/test_openal.py" + "--ignore=tests/integration/text/test_empty_document.py" + ;; Tests failed + "-k" (string-append "not test2" + " and not test5" + " and not testPad" + " and not testPad" + " and not testRange" + " and not testRect" + " and not testRect" + " and not testSet" + " and not testSquare" + " and not testSquare" + " and not testTuple" + " and not testTupleRange" + " and not test_context_noshare_texture" + " and not test_context_share_texture" + " and not test_method" + " and not test_openal_listener" + " and not test_parse_all_controller_mappings" + " and not test_player_play" + " and not test_player_play_multiple" + " and not test_stream_write_needed" + " and not test_window_caption" + " and not test_window_caption_from_argv")) + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'patch-lib-paths + (lambda* (#:key inputs #:allow-other-keys) + (substitute* (list "pyglet/font/fontconfig.py" + "pyglet/font/freetype_lib.py" + "pyglet/gl/lib_glx.py" + "pyglet/input/linux/evdev.py" + "pyglet/libs/egl/egl.py" + "pyglet/libs/egl/lib.py" + "pyglet/libs/x11/xf86vmode.py" + "pyglet/libs/x11/xinerama.py" + "pyglet/libs/x11/xlib.py" + "pyglet/libs/x11/xsync.py" + "pyglet/media/drivers/openal/lib_openal.py" + "pyglet/media/drivers/pulse/lib_pulseaudio.py") + (("'EGL'") + (format #f "'~a/~a'" #$(this-package-input "mesa") + "lib/libEGL.so")) + (("\"fontconfig\"") + (format #f "'~a/~a'" #$(this-package-input "fontconfig-minimal") + "lib/libfontconfig.so")) + (("\"freetype\"") + (format #f "'~a/~a'" #$(this-package-input "freetype") + "lib/libfreetype.so")) + (("'GL'") + (format #f "'~a/~a'" #$(this-package-input "mesa") + "lib/libGL.so")) + (("'GLU'") + (format #f "'~a/~a'" #$(this-package-input "glu") + "lib/libGLU.so")) + (("'X11'") + (format #f "'~a/~a'" #$(this-package-input "libx11") + "lib/libX11.so")) + (("'Xext'") + (format #f "'~a/~a'" #$(this-package-input "libxext") + "lib/libXext.so")) + (("'Xinerama'") + (format #f "'~a/~a'" #$(this-package-input "libxinerama") + "lib/libXinerama.so")) + (("'Xxf86vm'") + (format #f "'~a/~a'" #$(this-package-input "libxxf86vm") + "lib/libXxf86vm.so")) + (("'c'") + (format #f "'~a/~a'" #$(this-package-input "glibc") + "lib/libc.so")) + (("'gdk-x11-2.0'") + (format #f "'~a/~a'" #$(this-package-input "gtk+") + "lib/gdk-pixbuf-2.0.so")) + (("'gdk_pixbuf-2.0'") + (format #f "'~a/~a'" #$(this-package-input "gdk-pixbuf") + "lib/libgdk_pixbuf-2.0.so")) + (("'openal'") + (format #f "'~a/~a'" #$(this-package-input "openal") + "lib/libopenal.so")) + (("'pulse'") + (format #f "'~a/~a'" #$(this-package-input "pulseaudio") + "lib/libpulse.so"))))) + (add-before 'check 'prepare-test-environment + (lambda _ + ;; The test suite requires a running X server. + (system "Xvfb :1 &") + (setenv "DISPLAY" ":1") + (setenv "HOME" "/tmp") + (setenv "PYGLET_HEADLESS" "True")))))) + (native-inputs + (list python-flit-core + python-pytest + unzip + xorg-server-for-tests)) + (inputs + (list ffmpeg + fontconfig + freeglut + freetype + gdk-pixbuf + glibc + glu + gtk+ + libx11 + libxext + libxinerama + libxxf86vm + mesa + openal + pulseaudio)) + (home-page "https://github.com/pyglet/pyglet") + (synopsis "Windowing and multimedia 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, playing sounds and +music." ) + (license license:bsd-3))) ;;; ;;; Avoid adding new packages to the end of this file. To reduce the chances