From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id kHi2MdiZdWAipgAAgWs5BA (envelope-from ) for ; Tue, 13 Apr 2021 15:17:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id oBKzK9iZdWA2OgAA1q6Kng (envelope-from ) for ; Tue, 13 Apr 2021 13:17:12 +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 3CC7619C25 for ; Tue, 13 Apr 2021 15:17:12 +0200 (CEST) Received: from localhost ([::1]:58056 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lWIul-0004FV-CL for larch@yhetil.org; Tue, 13 Apr 2021 09:17:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43142) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lWIud-0004DV-7n for guix-patches@gnu.org; Tue, 13 Apr 2021 09:17:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:47761) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lWIud-0001JP-0L for guix-patches@gnu.org; Tue, 13 Apr 2021 09:17:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lWIuc-0003yX-T4 for guix-patches@gnu.org; Tue, 13 Apr 2021 09:17:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47593] [PATCH 6/6] gnu: python-xyz: Add python-abjad. Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 13 Apr 2021 13:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47593 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: BonfaceKilz Cc: 47593@debbugs.gnu.org, jgart@dismail.de Received: via spool by 47593-submit@debbugs.gnu.org id=B47593.161831979715231 (code B ref 47593); Tue, 13 Apr 2021 13:17:02 +0000 Received: (at 47593) by debbugs.gnu.org; 13 Apr 2021 13:16:37 +0000 Received: from localhost ([127.0.0.1]:59306 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lWIuA-0003xX-43 for submit@debbugs.gnu.org; Tue, 13 Apr 2021 09:16:37 -0400 Received: from flashner.co.il ([178.62.234.194]:55828) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lWIu8-0003xK-9t for 47593@debbugs.gnu.org; Tue, 13 Apr 2021 09:16:33 -0400 Received: from localhost (unknown [31.210.177.71]) by flashner.co.il (Postfix) with ESMTPSA id 77621405C9; Tue, 13 Apr 2021 13:16:26 +0000 (UTC) Date: Tue, 13 Apr 2021 16:14:48 +0300 From: Efraim Flashner Message-ID: References: <20210404122005.33127-1-me@bonfacemunyoki.com> <20210404122005.33127-7-me@bonfacemunyoki.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="V9NhZi7jZW6LbStI" Content-Disposition: inline In-Reply-To: <20210404122005.33127-7-me@bonfacemunyoki.com> X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1618319832; 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: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; bh=lmG0KrI3ou0l/nGJt9Gr4eSrnSsisoc0m4oc+j+Jpi0=; b=L24TiwJaWEGtfOb/yfhaEtTvHS515pelLqTfzcjXBmDlkdMiY9Y4qKqu4SZWwLOKb5fqNf 7LRbPtV2h5fyun2rwwIpK3DYxqD4/G5rfJyqqG1tBMB82ga1ygYPE+tsd90dNsVYyd59fa 1J1C6wSTd5R64bO8VkG6YXRApvMfxXeNXO7QTrNcbMRsLpuNKge5sfBjrN+7k9wVbF4Uxq Iph3DKNX6JYNVRbydBBhiXeTJblYQmNu+FxVqs0DtQTnrO6scfHDjXceP8J4JVmaNO5t6u ZkEG0ve5t+74jmyMMzVcSPGpBkcuvPi+CtgEVlxuv6HLMFDgWjEGBNeSd88foQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618319832; a=rsa-sha256; cv=none; b=kBVx5eIb7hzw16n2vWYqWuqbmwPzU8XC9pXn+HHJV6mnQXfo4uU21FAH/5g4MyObcBhEJp Xi1b16cgJvia41dyvV8bO6QisPBg2FG2HFRxYDnP45HdC4co9uQpPFO1wwaN68f215u3c8 ueSRse/1ZDaGPvkv1eVNJvv0c0/uGRCXsp0HdTdOepTal45jkNdfv+n9rxgjfK1nyhS0YJ lh5gDqY6auE4sS/Zo6KiMCfZOCAuCUSXxGswMadb9qaJB2fGKreBvPg68m3OkfbWkxaQ4k PUs2SKPnUv0W97cwVOYkjaPWqZoQJj4RuNQUwydAniFOgPSTqP0+rhz7u21rfw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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: -4.04 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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: 3CC7619C25 X-Spam-Score: -4.04 X-Migadu-Scanner: scn0.migadu.com X-TUID: M9RdZQ9zoea5 --V9NhZi7jZW6LbStI Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I would put this in music.scm near lilypond. On Sun, Apr 04, 2021 at 03:20:05PM +0300, BonfaceKilz wrote: > * gnu/packages/python-xyz.scm (python-abjad): New variable. >=20 > Co-authored-by: jgart > --- > gnu/packages/python-xyz.scm | 52 +++++++++++++++++++++++++++++++++++++ > 1 file changed, 52 insertions(+) >=20 > diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm > index e87ba6b6b6..baa8534d7a 100644 > --- a/gnu/packages/python-xyz.scm > +++ b/gnu/packages/python-xyz.scm > @@ -162,6 +162,7 @@ > #:use-module (gnu packages maths) > #:use-module (gnu packages monitoring) > #:use-module (gnu packages multiprecision) > + #:use-module (gnu packages music) > #:use-module (gnu packages networking) > #:use-module (gnu packages ncurses) > #:use-module (gnu packages openstack) > @@ -24356,3 +24357,54 @@ iGoogle subscription lists.") > (description > "Fast fractions data type for rational numbers. Cythonized version = of 'fractions.Fraction'.") > (license license:psfl))) > + If this is a package that would be installed then you can change the name to abjad, no need to keep the python prefix. > +(define-public python-abjad > + (package > + (name "python-abjad") > + (version "3.3") > + (source > + (origin > + (method url-fetch) > + (uri > + (string-append > + "https://github.com/Abjad/abjad/archive/refs/tags/v" > + version ".tar.gz")) This should be a pypi URI or be downloaded using git-fetch > + (sha256 > + (base32 > + "0dvj40g8kq1jdp09gb2chxxb7959vxv5h4m8ywg4qigsw3f11xnx")))) > + (build-system python-build-system) > + (arguments > + `(#:phases > + (modify-phases %standard-phases > + (add-after 'unpack 'patch-source > + (lambda _ > + (substitute* "setup.py" > + (("uqbar>=3D0.4.4, <0.5.0") "uqbar>=3D0.4.4, <=3D0.5.1") I would just take off the <0.5.0 and not try to make it just high enough to include the version packaged. > + (("pytest>=3D5.4.3") "pytest>=3D5.3")) We also have pytest-6. Of course this is also fine. > + #t)) > + (replace 'check > + (lambda _ (lambda* (#:key tests? #:allow-other-keys) (when tests? > + ;; See: https://stackoverflow.com/a/34140498 > + (invoke "python" "-m" "pytest" "tests") > + #t))))) I'm sure that not all of these need to be propagated. The source should be patched to refer to lilypond and I'm guessing most of the rest can either be inputs (they'll get wrapped with the python wrapper) or native-inputs if they're only needed for tests. > + (propagated-inputs > + `(("lilypond" ,lilypond) ;; Required for tests to pass! > + ("python-black" ,python-black) > + ("python-flake8" ,python-flake8) > + ("python-isort" ,python-isort) > + ("python-mypy" ,python-mypy) > + ("python-ply" ,python-ply) > + ("python-pytest" ,python-pytest) > + ("python-pytest-cov" ,python-pytest-cov) > + ("python-quicktions" ,python-quicktions) > + ("python-roman" ,python-roman) > + ("python-six" ,python-six) > + ("python-sphinx-autodoc-typehints" > + ,python-sphinx-autodoc-typehints) > + ("python-uqbar" ,python-uqbar))) > + (home-page "https://abjad.github.io") > + (synopsis > + "Abjad is a Python API for building LilyPond files.") I'd shorten this to "Python API for building LilyPind files" > + (description > + "Abjad is a Python API for building LilyPond files.") > + (license license:expat))) > --=20 > 2.31.0 >=20 >=20 >=20 >=20 --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --V9NhZi7jZW6LbStI Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmB1mUgACgkQQarn3Mo9 g1HAQRAAu5+cc6QisvdCgppqQLKKKoPhr2Eb4aUTioEvc3IuR0JqKJfvMC95nWWb 2HPZzeAML/pNuNhhA/zL69NMQ+xjrCRDmn/Y543DaP1YHDaHOsnGL2Ui17FYZ5Id Glq7ayTpvvOibuxml20IBqh1nLzTXLxNgQwO3raSjHfthLMccOrogvU94i4uy4Hr RTHhICi7kdIzDJrEz4m8mPJWnMYgcS0K6QaJEXhZoWW8/VbQqlX9TzHmJeixiWfz XweRPw1q0T/EWHBv+H+PcKo1sEfLNBSmsJ+UoK+DM5ZslKIbxsoGkBgU864vrODq SCfx6+n8JOYRYMlItxBwD30AicFqcwZyQpAiHTMwZhFzQ2Yw0m6DiftX7NXtkvM5 13lo7yb0N5fNeKEuIRFfwI1PG2Hdx+rh7YSqvIVmYIsC/3DDyfueKDR7fVdMnlR7 tWMW4b0eimu1DJCBtLWEtRHIz1X8eG+8YwXhAgrZ7OghlVyTTz+p1pLNr/yN+BL0 du80YVlCMC7MKcC4tnmwaBZWgW9BXJNr3ehOXtMw2OuHW1a9qLJcKPmJiigalV3k TuHBl/U4JtSVWW6npXL/5cNFBBMYHXJTXGGGVxCREv73EztyyBEfZbjOSAcf0riE 7B7f1gM7I+i1kZ8JbqF2gKLGfpm7vhiRWMt5oxj5zaNdVMqWKcA= =5e7O -----END PGP SIGNATURE----- --V9NhZi7jZW6LbStI--