gnu: beets: Build with Python 3.

* gnu/packages/music.scm (beets)[arguments]: Build with python@3.
(native-inputs): Use Python-2 variants of all inputs.
(inputs): Use Python-2 variants of all inputs. Remove python-pyechonest.
master
Leo Famulari 2016-12-26 02:40:13 -05:00
parent 27ccefc3d2
commit 0d48ff811f
No known key found for this signature in database
GPG Key ID: 2646FA30BACA7F08
1 changed files with 19 additions and 25 deletions

View File

@ -2065,39 +2065,33 @@ websites such as Libre.fm.")
"0sna2hx8sdaa36jnvw5a7m31wzfm717lw2ixh906fsfp43i74k5m")))) "0sna2hx8sdaa36jnvw5a7m31wzfm717lw2ixh906fsfp43i74k5m"))))
(build-system python-build-system) (build-system python-build-system)
(arguments (arguments
`(;; Python 3 support is still "alpha", and the upstream maintainers ask `(#:phases
;; packagers not to use it yet:
;; https://github.com/beetbox/beets/releases/tag/v1.4.1
;; TODO Check this again for the next release.
#:python ,python-2
#:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-after 'unpack 'set-HOME (add-after 'unpack 'set-HOME
(lambda _ (setenv "HOME" (string-append (getcwd) "/tmp")))) (lambda _ (setenv "HOME" (string-append (getcwd) "/tmp"))))
(replace 'check (replace 'check
(lambda _ (zero? (system* "nosetests" "-v"))))))) (lambda _ (zero? (system* "nosetests" "-v")))))))
(native-inputs (native-inputs
`(("python2-beautifulsoup4" ,python2-beautifulsoup4) `(("python-beautifulsoup4" ,python-beautifulsoup4)
("python2-flask" ,python2-flask) ("python-flask" ,python-flask)
("python2-mock" ,python2-mock) ("python-mock" ,python-mock)
("python2-mpd2" ,python2-mpd2) ("python-mpd2" ,python-mpd2)
("python2-nose" ,python2-nose) ("python-nose" ,python-nose)
("python2-pathlib" ,python2-pathlib) ("python-pathlib" ,python-pathlib)
("python2-pyxdg" ,python2-pyxdg) ("python-pyxdg" ,python-pyxdg)
("python2-pyechonest" ,python2-pyechonest) ("python-pylast" ,python-pylast)
("python2-pylast" ,python2-pylast) ("python-rarfile" ,python-rarfile)
("python2-rarfile" ,python2-rarfile) ("python-responses" ,python-responses)))
("python2-responses" ,python2-responses)))
;; TODO: Install optional plugins and dependencies. ;; TODO: Install optional plugins and dependencies.
(inputs (inputs
`(("python2-discogs-client" ,python2-discogs-client) `(("python-discogs-client" ,python-discogs-client)
("python2-enum34" ,python2-enum34) ("python-enum34" ,python-enum34)
("python2-jellyfish" ,python2-jellyfish) ("python-jellyfish" ,python-jellyfish)
("python2-munkres" ,python2-munkres) ("python-munkres" ,python-munkres)
("python2-musicbrainzngs" ,python2-musicbrainzngs) ("python-musicbrainzngs" ,python-musicbrainzngs)
("python2-mutagen" ,python2-mutagen) ("python-mutagen" ,python-mutagen)
("python2-pyyaml" ,python2-pyyaml) ("python-pyyaml" ,python-pyyaml)
("python2-unidecode" ,python2-unidecode))) ("python-unidecode" ,python-unidecode)))
(home-page "http://beets.io") (home-page "http://beets.io")
(synopsis "Music organizer") (synopsis "Music organizer")
(description "The purpose of beets is to get your music collection right (description "The purpose of beets is to get your music collection right