| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 |
|
| 22 | (define-module (gnu packages nicotine)
|
| 23 | #:use-module ((guix licenses) #:prefix license:)
|
| 24 | #:use-module (guix packages)
|
| 25 | #:use-module (guix gexp)
|
| 26 | #:use-module (guix git-download)
|
| 27 | #:use-module (guix build-system pyproject)
|
| 28 | #:use-module (gnu packages bash)
|
| 29 | #:use-module (gnu packages freedesktop)
|
| 30 | #:use-module (gnu packages glib)
|
| 31 | #:use-module (gnu packages gnome)
|
| 32 | #:use-module (gnu packages gettext)
|
| 33 | #:use-module (gnu packages gtk)
|
| 34 | #:use-module (gnu packages mp3)
|
| 35 | #:use-module (gnu packages python-build)
|
| 36 | #:use-module (gnu packages xorg))
|
| 37 |
|
| 38 | (define-public nicotine+
|
| 39 | (package
|
| 40 | (name "nicotine+")
|
| 41 | (version "3.3.10")
|
| 42 | (source
|
| 43 | (origin
|
| 44 | (method git-fetch)
|
| 45 | (uri (git-reference
|
| 46 | (url "https://github.com/Nicotine-Plus/nicotine-plus")
|
| 47 | (commit version)))
|
| 48 | (file-name (git-file-name name version))
|
| 49 | (sha256
|
| 50 | (base32 "0xj7hlhgirgjyfmdchksvwhjhaqaf5n84brzih6fqlbsrr9gxkw9"))))
|
| 51 | (build-system pyproject-build-system)
|
| 52 | (arguments
|
| 53 | (list
|
| 54 | #:imported-modules
|
| 55 | `((guix build glib-or-gtk-build-system)
|
| 56 | ,@%pyproject-build-system-modules)
|
| 57 | #:modules
|
| 58 | `((guix build utils)
|
| 59 | (guix build pyproject-build-system)
|
| 60 | ((guix build glib-or-gtk-build-system) #:prefix glib-or-gtk:))
|
| 61 | #:phases
|
| 62 | #~(modify-phases %standard-phases
|
| 63 | (add-after 'install 'wrap-program
|
| 64 | (lambda _
|
| 65 | (wrap-program (string-append #$output "/bin/nicotine")
|
| 66 | `("GUIX_GDK_PIXBUF_MODULE_FILES" ":" suffix
|
| 67 | (,(getenv "GUIX_GDK_PIXBUF_MODULE_FILES")))
|
| 68 | `("GI_TYPELIB_PATH" ":" prefix
|
| 69 | (,(getenv "GI_TYPELIB_PATH"))))))
|
| 70 | (add-after 'wrap-program 'glib-or-gtk-wrap
|
| 71 | (assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-wrap))
|
| 72 | (add-after 'glib-or-gtk-wrap 'glib-or-gtk-compile-schemas
|
| 73 | (assoc-ref glib-or-gtk:%standard-phases
|
| 74 | 'glib-or-gtk-compile-schemas))
|
| 75 | (replace 'check
|
| 76 | (lambda* (#:key tests? #:allow-other-keys)
|
| 77 | (when tests?
|
| 78 | |
| 79 | (setenv "HOME" "/tmp")
|
| 80 | |
| 81 | (delete-file "pynicotine/tests/unit/test_version.py")
|
| 82 | (invoke "xvfb-run" "python" "-m" "unittest")))))))
|
| 83 | (inputs (list bash-minimal
|
| 84 | gspell
|
| 85 | gtk
|
| 86 | python-pygobject
|
| 87 | gobject-introspection
|
| 88 | libappindicator
|
| 89 | python-pytaglib))
|
| 90 | (native-inputs (list gettext-minimal python-setuptools xvfb-run))
|
| 91 | (home-page "https://nicotine-plus.org/")
|
| 92 | (synopsis "Graphical client for Soulseek")
|
| 93 | (description
|
| 94 | "Nicotine+ is a graphical client for the Soulseek peer-to-peer
|
| 95 | file sharing network. It is an attempt to keep Nicotine working with
|
| 96 | the latest libraries, kill bugs, keep current with the Soulseek protocol,
|
| 97 | and add some new features that users want and/or need.")
|
| 98 | (license license:gpl3+)))
|