From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id mFEyORMRQmGy5QAAgWs5BA (envelope-from ) for ; Wed, 15 Sep 2021 17:28:19 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id eKjwNBMRQmG4YQAA1q6Kng (envelope-from ) for ; Wed, 15 Sep 2021 15:28: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 90F673E97 for ; Wed, 15 Sep 2021 17:28:19 +0200 (CEST) Received: from localhost ([::1]:47894 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mQWpe-0004y1-IH for larch@yhetil.org; Wed, 15 Sep 2021 11:28:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43344) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mQWpR-0004vp-JM for guix-patches@gnu.org; Wed, 15 Sep 2021 11:28:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:41411) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mQWpR-00011K-Bo for guix-patches@gnu.org; Wed, 15 Sep 2021 11:28:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mQWpR-0001Qw-8w for guix-patches@gnu.org; Wed, 15 Sep 2021 11:28:05 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50505] [PATCH v2 05/13] 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: Wed, 15 Sep 2021 15:28:05 +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.16317196755415 (code B ref 50505); Wed, 15 Sep 2021 15:28:05 +0000 Received: (at 50505) by debbugs.gnu.org; 15 Sep 2021 15:27:55 +0000 Received: from localhost ([127.0.0.1]:52939 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mQWpE-0001P7-42 for submit@debbugs.gnu.org; Wed, 15 Sep 2021 11:27:55 -0400 Received: from out2.mail.ruhr-uni-bochum.de ([134.147.42.229]:64229) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mQWp8-0001Ne-J9 for 50505@debbugs.gnu.org; Wed, 15 Sep 2021 11:27:47 -0400 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 4H8kcF18Jgz8SNx for <50505@debbugs.gnu.org>; Wed, 15 Sep 2021 17:27:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ruhr-uni-bochum.de; s=mail-2017; t=1631719661; bh=BVrdcTe9Xt7uS4YND+ltrPT2wcZp6Husrl70kKhOrBA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lbdtiXPQw9XVroe6T6cTNOrptxjQc6MOQyps/l7WPbKqGJ/uWcdDou67Z8Yq08Q02 TKVyQZUki+V+2HPMZJ2lrObt7YwWB00Zg+PTANqd1VHI6uV5m7LJJW77hTTG/dAqnL 54YXmH5DkhWZxH68dA09jxebvWNjJEZhiAX9o86o= 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 4H8kcF0TFfz8SNG; Wed, 15 Sep 2021 17:27:41 +0200 (CEST) X-RUB-Notes: Internal origin=IPv6:2a05:3e00:c:1001::8693:2aec X-Envelope-Sender: Received: from mail2.mail.ruhr-uni-bochum.de (mail2.mail.ruhr-uni-bochum.de [IPv6:2a05:3e00:c:1001::8693:2aec]) by out2.mail.ruhr-uni-bochum.de (Postfix mi-int) with ESMTP id 4H8kcD6SFjz8SNJ; Wed, 15 Sep 2021 17:27:40 +0200 (CEST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.1 at mx2.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 4H8kcD4zRHzDgyX; Wed, 15 Sep 2021 17:27:40 +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:11 +0200 Message-Id: <20210915152519.25572-6-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=1631719699; 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=yT5gRvS+ouKFZzVu0vUw7+cRZsmEhKkaoQfbN9VXr0Y=; b=mg73fAyGq0Fu78aLJTirEwYJa5IrZ4u+nqFDv8RIk4i59IYUQBceEIaoPiGiaKKn3ofja9 qPGzh5HG3P+TK/cWimvsGDNY96ifF65xft/9oDk/cjHrqDRi4si7YI+Q9VTT/AajEejEbj N+nOUdcIlFM07w9lrO4BDHi37rjVdW+kJB+eGTwcNbp5r0Ou9dt/pHiCHkTBfH7VHVEurc dCMcTC1irtPaue2/wF4HwyB7gu2oJk+SmYjYA1ORETVwqk+ZJnKrushWFR6/S/kQv0hkA8 4RNOXzpzWgFnFpBcCq9rlzYl/0HOeip8k50h8bdV6oN5J02Ulvp0qZ4B3XvMDg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1631719699; a=rsa-sha256; cv=none; b=qqLMlghBoEYe0F2gkca8BjWwclQyeCcW9ZYDT3/pAGSuM4GMn7vh21PGpIaCCMe2sYFsmB Zf70mor/g0zWjuA7ri9WBj7GZEfxz6I8WogBv7zfG5RHV6E2HkGQcAL1X78CwrwFI5GgpN RLb+zfUxEyD14aiSKBYO87m/Dn9hsCfktmmAsJyW2H8aJ8s7BV/Li3c4tl4cotRgwdktHg PdHCIngWXaamYU0wmWx0VVmGO/wOXXYatMXVP6HKVmIJVoqAi3B71mFqzybC8KoQR0sTT3 9zhehVEKYY3B1xevk7Sqtb/3JTGhG89+67iqGVIpWoamgOlJ576Aav2Pp/LXyg== 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=lbdtiXPQ; 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=lbdtiXPQ; 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: 90F673E97 X-Spam-Score: 1.10 X-Migadu-Scanner: scn1.migadu.com X-TUID: mRS1oVlvNj/K * gnu/packages/python-xyz.scm (python-pyglet): 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 f10858d315..a48c228158 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -18971,6 +18971,64 @@ quality, with less code written. The majority of the moderngl code base is 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\""))))) + (add-before 'check 'prepare-x + (lambda _ + (system "Xvfb :1 &") + (setenv "DISPLAY" ":1"))) + (replace 'check + (lambda* (#:key inputs outputs #:allow-other-keys) + (add-installed-pythonpath inputs outputs) + (invoke "pytest" "tests/unit")))))) + (inputs + `(("mesa" ,mesa) + ("glu" ,glu) + ("freetype" ,freetype) + ("fontconfig" ,fontconfig))) + (native-inputs + `(("unzip" ,unzip) + ("python-pytest" ,python-pytest) + ("xorg-server" ,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.33.0