From 3aca3f2877b64d98d3b389143b59155f8d28ea0f Mon Sep 17 00:00:00 2001 From: Marius Bakke Date: Wed, 12 Jan 2022 14:43:08 +0100 Subject: gnu: abjad: Fix build. * gnu/packages/music.scm (abjad)[arguments]: Permit newer versions of uqbar. [native-inputs]: Move everything except PYTHON-INICONFIG to ... [propagated-inputs]: ... here. Add PYTHON-PYTEST-HELPERS-NAMESPACE. --- gnu/packages/music.scm | 31 ++++++++++++++++++++----------- 1 file changed, 20 insertions(+), 11 deletions(-) (limited to 'gnu/packages/music.scm') diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm index efa5f464d8..0d0ffa74d8 100644 --- a/gnu/packages/music.scm +++ b/gnu/packages/music.scm @@ -30,7 +30,7 @@ ;;; Copyright © 2020 Giacomo Leidi ;;; Copyright © 2020, 2022 Michael Rohleder ;;; Copyright © 2020 Tanguy Le Carrour -;;; Copyright © 2020 Marius Bakke +;;; Copyright © 2020, 2022 Marius Bakke ;;; Copyright © 2019 Riku Viitanen ;;; Copyright © 2020 Ryan Prior ;;; Copyright © 2021 Liliana Marie Prikler @@ -1564,26 +1564,35 @@ listeners answer questions about music quickly and simply.") (arguments `(#:phases (modify-phases %standard-phases + (add-after 'unpack 'loosen-requirements + (lambda _ + (substitute* "setup.py" + ;; Permit newer versions of uqbar. Remove for >3.4. + ((", <0\\.5\\.0") + "")))) (replace 'check (lambda* (#:key tests? #:allow-other-keys) (when tests? ;; See: https://stackoverflow.com/a/34140498 - (invoke "python" "-m" "pytest" "tests") - #t)))))) - (native-inputs - (list python-black + (invoke "python" "-m" "pytest" "tests"))))))) + (inputs + (list lilypond)) + (propagated-inputs + (list python-ply + python-quicktions + python-roman + python-six + python-uqbar + ;; XXX: These test dependencies(?) are listed as install_requires + ;; in setup.py. Propagate accordingly. + python-black python-flake8 - python-iniconfig python-isort python-mypy python-pytest python-pytest-cov + python-pytest-helpers-namespace python-sphinx-autodoc-typehints)) - (inputs - (list lilypond)) - (propagated-inputs - (list python-ply python-quicktions python-roman python-six - python-uqbar)) (home-page "https://abjad.github.io") (synopsis "Python API for building LilyPond files") (description -- cgit 1.4.1