Archived
1
0
Fork 0

gnu: python-pyportmidi: Update to 0.0.7-0.d9e5ee0.

When the PortMidi project moved to GitHub in 2021, changing version numbering
scheme, the Python bindings were moved to a separate repository and marked as
needing a new maintainer.  The chosen revision, dated June 2023, is the first
to allow the package to build successfully in the temporary lack of an
official new release.

* gnu/packages/music.scm (python-pyportmidi): Source moved, fix build.
[version]: Change to new scheme, jumping from 217 to 0.0.7.
[source]: Change origin from Sourceforge to GitHub.

Change-Id: Ibe02edca39731f3f3c9001818665d2da97df9465
Signed-off-by: Christopher Baines <mail@cbaines.net>
This commit is contained in:
Marco Rimoldi 2024-02-21 20:30:33 +01:00 committed by Christopher Baines
parent d99cec308c
commit cf0f8918f6
No known key found for this signature in database
GPG key ID: 5E28A33B0B84F577

View file

@ -3041,36 +3041,28 @@ using a system-independent interface.")
(license license:expat))) (license license:expat)))
(define-public python-pyportmidi (define-public python-pyportmidi
(package (let ((commit "d9e5ee00b208b09618fa0d4a5bbce3c9c077b386")
(name "python-pyportmidi") (revision "0"))
(version (package-version portmidi)) (package
(source (package-source portmidi)) (name "python-pyportmidi")
(build-system python-build-system) (version (git-version "0.0.7" revision commit))
(arguments (source
`(#:tests? #f ; no tests included (origin
#:phases (method git-fetch)
(modify-phases %standard-phases (uri (git-reference
(add-after 'unpack 'enter-dir (url "https://github.com/PortMidi/pm_python")
(lambda _ (chdir "pm_python") #t)) (commit commit)))
(add-after 'enter-dir 'fix-setup.py (sha256
(lambda _ (base32 "1jvp9na8d1hw46w9ybhkimbavfb3ysw7hp30cbk6dj40k5y5vgvz"))
(substitute* "setup.py" (file-name (git-file-name name version))))
;; Use Python 3 syntax (build-system python-build-system)
(("print (\".*\")" _ text) (inputs (list portmidi alsa-lib))
(string-append "print(" text ")\n")) (native-inputs (list python-cython))
;; TODO.txt and CHANGES.txt don't exist (home-page "https://github.com/PortMidi")
(("CHANGES =.*") "CHANGES = \"\"\n") (synopsis "Python bindings to PortMidi")
(("TODO =.*") "TODO = \"\"\n")) (description
#t))))) "This package provides Python bindings to the PortMidi library.")
(inputs (license license:expat))))
(list portmidi alsa-lib))
(native-inputs
(list python-cython unzip))
(home-page "https://portmedia.sourceforge.net/portmidi/")
(synopsis "Python bindings to PortMidi")
(description
"This package provides Python bindings to the PortMidi library.")
(license license:expat)))
(define-public frescobaldi (define-public frescobaldi
(package (package