From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 gDQBDrjz0GGzKgEAgWs5BA (envelope-from ) for ; Sun, 02 Jan 2022 01:37:12 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id YKm0Crjz0GEhfAAAauVa8A (envelope-from ) for ; Sun, 02 Jan 2022 01:37:12 +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 F23AF27538 for ; Sun, 2 Jan 2022 01:37:11 +0100 (CET) Received: from localhost ([::1]:54738 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n3os2-0008Kk-M2 for larch@yhetil.org; Sat, 01 Jan 2022 19:37:10 -0500 Received: from eggs.gnu.org ([209.51.188.92]:49210) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n3orx-0008KX-NU for guix-patches@gnu.org; Sat, 01 Jan 2022 19:37:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:48093) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n3oru-0007rb-9C for guix-patches@gnu.org; Sat, 01 Jan 2022 19:37:05 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n3ort-0004J7-Te for guix-patches@gnu.org; Sat, 01 Jan 2022 19:37:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#50505] [PATCH v3 05/12] gnu: Add python-pyglet. Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 02 Jan 2022 00:37: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.164108380416528 (code B ref 50505); Sun, 02 Jan 2022 00:37:01 +0000 Received: (at 50505) by debbugs.gnu.org; 2 Jan 2022 00:36:44 +0000 Received: from localhost ([127.0.0.1]:59639 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n3orc-0004IU-E6 for submit@debbugs.gnu.org; Sat, 01 Jan 2022 19:36:44 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:35569) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n3ora-0004IE-Gp for 50505@debbugs.gnu.org; Sat, 01 Jan 2022 19:36:43 -0500 Received: by mail-wm1-f67.google.com with SMTP id v10-20020a05600c214a00b00345e59928eeso12706240wml.0 for <50505@debbugs.gnu.org>; Sat, 01 Jan 2022 16:36:42 -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=6HSlaibSv6HUHochbP+gLOGfl2GO1wwjUKzU36J4Cfk=; b=LHBE2SA73weDLM+zw3pMHVp/2ZySWBprF2jn6OXHOfGRNXwgRoIHbGhuJJCcqRqBgi JLsB8GVolEoN9bKS/6t0zjLnETlmiUs6ngFX93Uq4PrAdvQ9GKqH0sf9mQiWW0gIoVQv pEUQQouwrHNJf6J8K1Hl1UPpkLD/ykN+m3GoSr6lYTbTbc1/17S4aSVV/+BVmMr4SF7G HnMYk+i52ngYVxq7RJwPacxZe1EIh56ejEKlQ7i6mMIiwNtL4nAFRmnObdL1EPP7pTsP /wetdIzVs0wPxvX2CI6A8s3obS8gl7lXGugTj3MsfIakugFBe/hOl8tXBW82ndJbVPxS sYdQ== 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=6HSlaibSv6HUHochbP+gLOGfl2GO1wwjUKzU36J4Cfk=; b=6mWHz15akiYoYDBargK9dWkRg8VsVOz0QqhQQ1foLuB2eqzZhnQqb5JiAc3qphYAD1 Glix7UezxwLLnqh9uLy14WcdAVC5eMMQpuEnVzzqgqAqErC8utLrVhdyK1qfjqbEdzqW +bZIOYvjLN8dOx2N/xR/HVfBYq2InHgI/EvQhPNEGAfQHz9jDEUiVhaS9PXiMXUB6MDe lxqhOsQbY6HehqN5P3zrdEFif+ADWUGV3bjEZHYq5Fjb+U/W1w8UTS12UN0qnck8Oszz w+QWrrWxE+/GcojpB7xNf+lbsCKffaGKOEWhA6SEKBkijI1iIKCdGOGpOjPPM9/8Lzlr TCjQ== X-Gm-Message-State: AOAM531jwdcV5FGU9Ay3sHjhsBl2uaINj7E2C+CL1EqsqXWpcevCxNkU 0FSBGQ2nU1fupzsgSdZyrbo= X-Google-Smtp-Source: ABdhPJwr3GjsENfK20U63Ow4T+L6tsPZxjZKRqPeMDmginEtH/eswx5zjvTa8eoxAXau8Nvdi0iyvQ== X-Received: by 2002:a05:600c:2186:: with SMTP id e6mr33635094wme.153.1641083796697; Sat, 01 Jan 2022 16:36:36 -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 l2sm31983466wrs.43.2022.01.01.16.36.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 01 Jan 2022 16:36:36 -0800 (PST) Message-ID: From: Liliana Marie Prikler Date: Sun, 02 Jan 2022 01:36:35 +0100 In-Reply-To: <20220101235155.5754-6-daniel.meissner-i4k@ruhr-uni-bochum.de> References: <20220101235155.5754-1-daniel.meissner-i4k@ruhr-uni-bochum.de> <20220101235155.5754-6-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=1641083832; 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=6HSlaibSv6HUHochbP+gLOGfl2GO1wwjUKzU36J4Cfk=; b=JwRPq+t2e/NXSVtbLknzxgJZMdAWKtm7cvCi4bbXBriXMaiOhFn/PqKFih7LGMb1do4Hu5 p2Yf5J1thhzqEdR/LEYaiLn+VfpuyRnKUQ8SbOiTVlMhU4y9qITgW3xKeWoTcxlJdHlDy6 Os7i8J9JziSGbdl987vtUhMuv6CHYDfbvDcDEjr2DjNXzBIzHSGT/peB7ReUR3ykx1NZVT PVAAXU3cPnzY7vMVjG/ulg4Gz7DHKKqKcjlnGF/koFAVGgrKiCohJKdrvUPXicNo/0BtZf h+C2M06XE2KXL+3cr2On8/9n4Se2JVEJ0KJoxEPYko/gdXN/qk2+S2b+13lHsA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1641083832; a=rsa-sha256; cv=none; b=IbLZ9mogUWRYYEPsbeVF56aJYMC/+v8C9k5f5v7W78lL/ikR59RR92imSauyBw8jsVzV+w dSAlTA9EmaGpF0V4UwnmRFxb5U9KKcLbWZXXyth22aZbZdSeLWs1UNzByHrtKplC7OA/7s NvrtLkEYPf7z9Pw+x8wmhBSVd7h+jyB5uT12mPNQgQuinof6gwbAhD8HoNMteHdov+hwXL fenr5GvWNSHnuM+96LVY6fXUlVtwhCw+Z63oDcD8EvGKQqjQTs3qSu0Q+9sl6ADWNqkxJD eI3HxJEyjmTRkv8H4jIoLSXlbD2oranoACMFUKVkD3Mw4vt44yJ5myf3cpoHqA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=LHBE2SA7; 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: -1.98 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=LHBE2SA7; 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: F23AF27538 X-Spam-Score: -1.98 X-Migadu-Scanner: scn1.migadu.com X-TUID: OAxPwxzYRW0a Am Sonntag, dem 02.01.2022 um 00:51 +0100 schrieb Daniel Meißner: > +         (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\""))))) Here as well, friendship ended with assoc-ref ;) > +         (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"))))))) We typically use a pre-check phase to set things up. Does python support #:test-target? > +    (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.") Last sentence sounds like an ad statement, the others can stay.