| 1 | ;;; GNU Guix --- Functional package management for GNU |
| 2 | ;;; Copyright © 2014 Taylan Ulrich Bayirli/Kammer <taylanbayirli@gmail.com> |
| 3 | ;;; Copyright © 2014, 2015, 2016 Ludovic Courtès <ludo@gnu.org> |
| 4 | ;;; Copyright © 2016, 2017, 2018, 2019, 2020 Leo Famulari <leo@famulari.name> |
| 5 | ;;; Copyright © 2016, 2017, 2018, 2019, 2020 Efraim Flashner <efraim@flashner.co.il> |
| 6 | ;;; Copyright © 2016 Tomáš Čech <sleep_walker@gnu.org> |
| 7 | ;;; Copyright © 2016, 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr> |
| 8 | ;;; Copyright © 2017 Jelle Licht <jlicht@fsfe.org> |
| 9 | ;;; Copyright © 2018 Fis Trivial <ybbs.daans@hotmail.com> |
| 10 | ;;; Copyright © 2018 Nam Nguyen <namn@berkeley.edu> |
| 11 | ;;; Copyright © 2018 Ricardo Wurmus <rekado@elephly.net> |
| 12 | ;;; Copyright © 2019, 2020 Brett Gilio <brettg@gnu.org> |
| 13 | ;;; Copyright © 2020 Hartmut Goebel <h.goebel@crazy-compilers.com> |
| 14 | ;;; Copyright © 2021 Justin Veilleux <terramorpha@cock.li> |
| 15 | ;;; |
| 16 | ;;; This file is part of GNU Guix. |
| 17 | ;;; |
| 18 | ;;; GNU Guix is free software; you can redistribute it and/or modify it |
| 19 | ;;; under the terms of the GNU General Public License as published by |
| 20 | ;;; the Free Software Foundation; either version 3 of the License, or (at |
| 21 | ;;; your option) any later version. |
| 22 | ;;; |
| 23 | ;;; GNU Guix is distributed in the hope that it will be useful, but |
| 24 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of |
| 25 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 26 | ;;; GNU General Public License for more details. |
| 27 | ;;; |
| 28 | ;;; You should have received a copy of the GNU General Public License |
| 29 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. |
| 30 | |
| 31 | (define-module (gnu packages bittorrent) |
| 32 | #:use-module (guix packages) |
| 33 | #:use-module (guix download) |
| 34 | #:use-module (guix git-download) |
| 35 | #:use-module (guix build-system gnu) |
| 36 | #:use-module (guix build-system python) |
| 37 | #:use-module (guix build-system glib-or-gtk) |
| 38 | #:use-module ((guix licenses) #:prefix l:) |
| 39 | #:use-module (guix utils) |
| 40 | #:use-module (gnu packages) |
| 41 | #:use-module (gnu packages adns) |
| 42 | #:use-module (gnu packages autotools) |
| 43 | #:use-module (gnu packages boost) |
| 44 | #:use-module (gnu packages check) |
| 45 | #:use-module (gnu packages compression) |
| 46 | #:use-module (gnu packages crypto) |
| 47 | #:use-module (gnu packages curl) |
| 48 | #:use-module (gnu packages cyrus-sasl) |
| 49 | #:use-module (gnu packages freedesktop) |
| 50 | #:use-module (gnu packages gettext) |
| 51 | #:use-module (gnu packages glib) |
| 52 | #:use-module (gnu packages gnome) |
| 53 | #:use-module (gnu packages gnupg) |
| 54 | #:use-module (gnu packages gstreamer) |
| 55 | #:use-module (gnu packages gtk) |
| 56 | #:use-module (gnu packages libevent) |
| 57 | #:use-module (gnu packages multiprecision) |
| 58 | #:use-module (gnu packages nettle) |
| 59 | #:use-module (gnu packages ncurses) |
| 60 | #:use-module (gnu packages pkg-config) |
| 61 | #:use-module (gnu packages python) |
| 62 | #:use-module (gnu packages python-build) |
| 63 | #:use-module (gnu packages python-crypto) |
| 64 | #:use-module (gnu packages python-web) |
| 65 | #:use-module (gnu packages python-xyz) |
| 66 | #:use-module (gnu packages qt) |
| 67 | #:use-module (gnu packages sqlite) |
| 68 | #:use-module (gnu packages ssh) |
| 69 | #:use-module (gnu packages tls) |
| 70 | #:use-module (gnu packages xml)) |
| 71 | |
| 72 | (define-public transmission |
| 73 | (package |
| 74 | (name "transmission") |
| 75 | (version "3.00") |
| 76 | (source (origin |
| 77 | (method url-fetch) |
| 78 | (uri (string-append "https://github.com/transmission/transmission" |
| 79 | "/releases/download/" version "/transmission-" |
| 80 | version ".tar.xz")) |
| 81 | (sha256 |
| 82 | (base32 |
| 83 | "1wjmn96zrvmk8j1yz2ysmqd7a2x6ilvnwwapcvfzgxs2wwpnai4i")) |
| 84 | (patches (search-patches "transmission-honor-localedir.patch")))) |
| 85 | (build-system glib-or-gtk-build-system) |
| 86 | (outputs '("out" ; library and command-line interface |
| 87 | "gui")) ; graphical user interface |
| 88 | (arguments |
| 89 | '(#:configure-flags |
| 90 | (list (string-append "--localedir=" |
| 91 | (assoc-ref %outputs "gui") |
| 92 | "/share/locale")) |
| 93 | ;; Some tests segfault when using libevent 2.12 without internet |
| 94 | ;; connection. This has been reported mainstream but not fixed yet: |
| 95 | ;; https://github.com/transmission/transmission/issues/1437. |
| 96 | #:tests? #f |
| 97 | #:glib-or-gtk-wrap-excluded-outputs '("out") |
| 98 | #:phases |
| 99 | (modify-phases %standard-phases |
| 100 | (add-after 'install 'move-gui |
| 101 | (lambda* (#:key outputs #:allow-other-keys) |
| 102 | ;; Move the GUI to its own output, so that "out" doesn't |
| 103 | ;; depend on GTK+. |
| 104 | (let ((out (assoc-ref outputs "out")) |
| 105 | (gui (assoc-ref outputs "gui"))) |
| 106 | (mkdir-p (string-append gui "/bin")) |
| 107 | (rename-file (string-append out "/bin/transmission-gtk") |
| 108 | (string-append gui "/bin/transmission-gtk")) |
| 109 | |
| 110 | (for-each |
| 111 | (lambda (dir) |
| 112 | (rename-file (string-append out "/share/" dir) |
| 113 | (string-append gui "/share/" dir))) |
| 114 | '("appdata" "applications" "icons" "pixmaps")) |
| 115 | |
| 116 | (mkdir-p (string-append gui "/share/man/man1")) |
| 117 | (rename-file |
| 118 | (string-append out "/share/man/man1/transmission-gtk.1") |
| 119 | (string-append gui "/share/man/man1/transmission-gtk.1")) |
| 120 | #t)))))) |
| 121 | (inputs |
| 122 | `(("libevent" ,libevent) |
| 123 | ("curl" ,curl) |
| 124 | ("openssl" ,openssl) |
| 125 | ("zlib" ,zlib) |
| 126 | ("gtk+" ,gtk+))) |
| 127 | (native-inputs |
| 128 | `(("intltool" ,intltool) |
| 129 | ("pkg-config" ,pkg-config))) |
| 130 | (home-page "https://transmissionbt.com/") |
| 131 | (synopsis "Fast and easy BitTorrent client") |
| 132 | (description |
| 133 | "Transmission is a BitTorrent client that comes with graphical, |
| 134 | textual, and Web user interfaces. Transmission also has a daemon for |
| 135 | unattended operations. It supports local peer discovery, full encryption, |
| 136 | DHT, µTP, PEX and Magnet Links.") |
| 137 | |
| 138 | ;; COPYING reads: |
| 139 | ;; |
| 140 | ;; Transmission can be redistributed and/or modified under the terms of |
| 141 | ;; the GNU GPLv2 (http://www.gnu.org/licenses/license-list.html#GPLv2), |
| 142 | ;; the GNU GPLv3 (http://www.gnu.org/licenses/license-list.html#GNUGPLv3), |
| 143 | ;; or any future license endorsed by Mnemosyne LLC. |
| 144 | ;; |
| 145 | ;; A few files files carry an MIT/X11 license header. |
| 146 | (license (list l:gpl2 l:gpl3)))) |
| 147 | |
| 148 | (define-public transmission-remote-gtk |
| 149 | (package |
| 150 | (name "transmission-remote-gtk") |
| 151 | (version "1.4.2") |
| 152 | (source |
| 153 | (origin |
| 154 | (method url-fetch) |
| 155 | (uri (string-append "https://github.com/transmission-remote-gtk/" |
| 156 | "transmission-remote-gtk/releases/download/" |
| 157 | version "/transmission-remote-gtk-" version |
| 158 | ".tar.gz")) |
| 159 | (sha256 |
| 160 | (base32 "0qz9wi70qc6vgnaymivc3xz6y86c9hglk6wjv3snnqxpxmp9saay")))) |
| 161 | (build-system gnu-build-system) |
| 162 | (native-inputs |
| 163 | `(("gettext" ,gnu-gettext) |
| 164 | ("pkg-config" ,pkg-config))) |
| 165 | (inputs |
| 166 | `(("appstream-glib" ,appstream-glib) |
| 167 | ("curl" ,curl) |
| 168 | ("gtk+" ,gtk+) |
| 169 | ("json-glib" ,json-glib))) |
| 170 | (synopsis "Gtk frontend to the Transmission daemon") |
| 171 | (description "transmission-remote-gtk is a GTK client for remote management |
| 172 | of the Transmission BitTorrent client, using its HTTP RPC protocol.") |
| 173 | (home-page "https://github.com/transmission-remote-gtk/transmission-remote-gtk") |
| 174 | (license l:gpl2+))) |
| 175 | |
| 176 | (define-public libtorrent |
| 177 | (package |
| 178 | (name "libtorrent") |
| 179 | (version "0.13.8") |
| 180 | (source (origin |
| 181 | (method url-fetch) |
| 182 | (uri (string-append |
| 183 | "http://rtorrent.net/downloads/libtorrent-" |
| 184 | version ".tar.gz")) |
| 185 | (sha256 |
| 186 | (base32 |
| 187 | "10z9i1rc41cmmi7nx8k7k1agsx6afv09g9cl7g9zr35fyhl5l4gd")))) |
| 188 | (build-system gnu-build-system) |
| 189 | (inputs `(("openssl" ,openssl) |
| 190 | ("zlib" ,zlib))) |
| 191 | (native-inputs `(("pkg-config" ,pkg-config) |
| 192 | ("cppunit" ,cppunit))) |
| 193 | (synopsis "BitTorrent library of rtorrent") |
| 194 | (description |
| 195 | "LibTorrent is a BitTorrent library used by and developed in parallel |
| 196 | with the BitTorrent client rtorrent. It is written in C++ with emphasis on |
| 197 | speed and efficiency.") |
| 198 | (home-page "https://github.com/rakshasa/libtorrent") |
| 199 | (license l:gpl2+))) |
| 200 | |
| 201 | (define-public rtorrent |
| 202 | (package |
| 203 | (name "rtorrent") |
| 204 | (version "0.9.8") |
| 205 | (source (origin |
| 206 | (method url-fetch) |
| 207 | (uri (string-append |
| 208 | "http://rtorrent.net/downloads/rtorrent-" |
| 209 | version ".tar.gz")) |
| 210 | (sha256 |
| 211 | (base32 |
| 212 | "1bs2fnf4q7mlhkhzp3i1v052v9xn8qa7g845pk9ia8hlpw207pwy")))) |
| 213 | (build-system gnu-build-system) |
| 214 | (inputs `(("libtorrent" ,libtorrent) |
| 215 | ("ncurses" ,ncurses) |
| 216 | ("curl" ,curl) |
| 217 | ("cyrus-sasl" ,cyrus-sasl) |
| 218 | ("openssl" ,openssl) |
| 219 | ("zlib" ,zlib))) |
| 220 | (native-inputs `(("pkg-config" ,pkg-config) |
| 221 | ("cppunit" ,cppunit))) |
| 222 | (synopsis "BitTorrent client with ncurses interface") |
| 223 | (description |
| 224 | "rTorrent is a BitTorrent client with an ncurses interface. It supports |
| 225 | full encryption, DHT, PEX, and Magnet Links. It can also be controlled via |
| 226 | XML-RPC over SCGI.") |
| 227 | (home-page "https://github.com/rakshasa/rtorrent") |
| 228 | (license l:gpl2+))) |
| 229 | |
| 230 | (define-public tremc |
| 231 | (package |
| 232 | (name "tremc") |
| 233 | (version "0.9.2") |
| 234 | (source |
| 235 | (origin |
| 236 | (method git-fetch) |
| 237 | (uri (git-reference |
| 238 | (url "https://github.com/tremc/tremc") |
| 239 | (commit version))) |
| 240 | (file-name (git-file-name name version)) |
| 241 | (sha256 |
| 242 | (base32 |
| 243 | "1fqspp2ckafplahgba54xmx0sjidx1pdzyjaqjhz0ivh98dkx2n5")))) |
| 244 | (build-system gnu-build-system) |
| 245 | (arguments |
| 246 | `(#:tests? #f ; no test suite |
| 247 | #:make-flags |
| 248 | (list (string-append "PREFIX=" (assoc-ref %outputs "out"))) |
| 249 | #:phases |
| 250 | (modify-phases %standard-phases |
| 251 | ;; The software is just a Python script that must be copied into place. |
| 252 | (delete 'configure) |
| 253 | (delete 'build)))) |
| 254 | (inputs |
| 255 | `(("python" ,python))) |
| 256 | (synopsis "Console client for the Transmission BitTorrent daemon") |
| 257 | (description "Tremc is a console client, with a curses interface, for the |
| 258 | Transmission BitTorrent daemon.") |
| 259 | (home-page "https://github.com/tremc/tremc") |
| 260 | (license l:gpl3+))) |
| 261 | |
| 262 | (define-public transmission-remote-cli |
| 263 | (package |
| 264 | (name "transmission-remote-cli") |
| 265 | (version "1.7.1") |
| 266 | (source (origin |
| 267 | (method git-fetch) |
| 268 | (uri (git-reference |
| 269 | (url "https://github.com/fagga/transmission-remote-cli") |
| 270 | (commit (string-append "v" version)))) |
| 271 | (file-name (git-file-name name version)) |
| 272 | (sha256 |
| 273 | (base32 |
| 274 | "09w9f8vrm61lapin8fmq4rgahr95y3c6wss10g0fgd0kl16f895v")))) |
| 275 | (build-system python-build-system) |
| 276 | (arguments |
| 277 | `(#:python ,python-2 ; only supports Python 2 |
| 278 | #:tests? #f ; no test suite |
| 279 | #:phases (modify-phases %standard-phases |
| 280 | ;; The software is just a Python script that must be |
| 281 | ;; copied into place. |
| 282 | (delete 'build) |
| 283 | (replace 'install |
| 284 | (lambda* (#:key outputs #:allow-other-keys) |
| 285 | (let* ((out (assoc-ref outputs "out")) |
| 286 | (bin (string-append out "/bin")) |
| 287 | (man (string-append out "/share/man/man1")) |
| 288 | ;; FIXME install zsh completions |
| 289 | (completions (string-append out "/etc/bash_completion.d"))) |
| 290 | (install-file "transmission-remote-cli" bin) |
| 291 | (install-file "transmission-remote-cli.1" man) |
| 292 | (install-file |
| 293 | (string-append |
| 294 | "completion/bash/" |
| 295 | "transmission-remote-cli-bash-completion.sh") |
| 296 | completions))))))) |
| 297 | (synopsis "Console client for the Transmission BitTorrent daemon") |
| 298 | (description "Transmission-remote-cli is a console client, with a curses |
| 299 | interface, for the Transmission BitTorrent daemon. This package is no longer |
| 300 | maintained upstream.") |
| 301 | (home-page "https://github.com/fagga/transmission-remote-cli") |
| 302 | (license l:gpl3+) |
| 303 | (properties `((superseded . ,tremc))))) |
| 304 | |
| 305 | (define-public aria2 |
| 306 | (package |
| 307 | (name "aria2") |
| 308 | (version "1.35.0") |
| 309 | (source (origin |
| 310 | (method url-fetch) |
| 311 | (uri (string-append "https://github.com/aria2/aria2/releases/" |
| 312 | "download/release-" version |
| 313 | "/aria2-" version ".tar.xz")) |
| 314 | (sha256 |
| 315 | (base32 |
| 316 | "1zbxc517d97lb96f15xcy4l7b66grxrp3h2ids2jiwkaip87yaqy")))) |
| 317 | (build-system gnu-build-system) |
| 318 | (arguments |
| 319 | `(#:configure-flags (list "--enable-libaria2" |
| 320 | (string-append "--with-bashcompletiondir=" |
| 321 | %output "/etc/bash_completion.d/")) |
| 322 | #:phases |
| 323 | (modify-phases %standard-phases |
| 324 | (add-after 'unpack 'delete-socket-tests |
| 325 | (lambda _ |
| 326 | (substitute* "test/LpdMessageDispatcherTest.cc" |
| 327 | (("CPPUNIT_TEST_SUITE_REGISTRATION\\(LpdMessageDispatcherTest\\);" text) |
| 328 | (string-append "// " text))) |
| 329 | (substitute* "test/LpdMessageReceiverTest.cc" |
| 330 | (("CPPUNIT_TEST_SUITE_REGISTRATION\\(LpdMessageReceiverTest\\);" text) |
| 331 | (string-append "// " text))) |
| 332 | #t))))) |
| 333 | (native-inputs |
| 334 | `(("cppunit" ,cppunit) ; for the tests |
| 335 | ("pkg-config" ,pkg-config))) |
| 336 | (inputs |
| 337 | `(("c-ares" ,c-ares) |
| 338 | ("gnutls" ,gnutls) |
| 339 | ("gmp" ,gmp) |
| 340 | ("libssh2" ,libssh2) |
| 341 | ("libxml2" ,libxml2) |
| 342 | ("nettle" ,nettle) |
| 343 | ("sqlite" ,sqlite) |
| 344 | ("zlib" ,zlib))) |
| 345 | (home-page "https://aria2.github.io/") |
| 346 | (synopsis "Utility for parallel downloading files") |
| 347 | (description |
| 348 | "Aria2 is a lightweight, multi-protocol & multi-source command-line |
| 349 | download utility. It supports HTTP/HTTPS, FTP, SFTP, BitTorrent and Metalink. |
| 350 | Aria2 can be manipulated via built-in JSON-RPC and XML-RPC interfaces.") |
| 351 | (license l:gpl2+))) |
| 352 | |
| 353 | (define-public uget |
| 354 | (package |
| 355 | (name "uget") |
| 356 | (version "2.2.1") |
| 357 | (source |
| 358 | (origin |
| 359 | (method url-fetch) |
| 360 | (uri (string-append "mirror://sourceforge/urlget/" |
| 361 | "uget%20%28stable%29/" version "/uget-" |
| 362 | version ".tar.gz")) |
| 363 | (sha256 |
| 364 | (base32 "0dlrjhnm1pg2vwmp7nl2xv1aia5hyirb3021rl46x859k63zap24")))) |
| 365 | (build-system gnu-build-system) |
| 366 | (inputs |
| 367 | `(("curl" ,curl) |
| 368 | ("gtk+" ,gtk+) |
| 369 | ("glib" ,glib) |
| 370 | ("gnutls" ,gnutls) |
| 371 | ("gstreamer" ,gstreamer) |
| 372 | ("libgcrypt" ,libgcrypt) |
| 373 | ("libnotify" ,libnotify) |
| 374 | ("openssl" ,openssl))) |
| 375 | (native-inputs |
| 376 | `(("intltool" ,intltool) |
| 377 | ("pkg-config" ,pkg-config))) |
| 378 | (home-page "https://ugetdm.com/") |
| 379 | (synopsis "Universal download manager with GTK+ interface") |
| 380 | (description |
| 381 | "uGet is portable download manager with GTK+ interface supporting |
| 382 | HTTP, HTTPS, BitTorrent and Metalink, supporting multi-connection |
| 383 | downloads, download scheduling, download rate limiting.") |
| 384 | (license l:lgpl2.1+))) |
| 385 | |
| 386 | (define-public mktorrent |
| 387 | (package |
| 388 | (name "mktorrent") |
| 389 | (version "1.1") |
| 390 | (source (origin |
| 391 | (method git-fetch) |
| 392 | (uri (git-reference |
| 393 | (url "https://github.com/Rudde/mktorrent") |
| 394 | (commit (string-append "v" version)))) |
| 395 | (file-name (git-file-name name version)) |
| 396 | (sha256 |
| 397 | (base32 |
| 398 | "17pdc5mandl739f8q26n5is8ga56s83aqcrwhlnnplbxwx2inidr")))) |
| 399 | (build-system gnu-build-system) |
| 400 | (arguments |
| 401 | `(#:phases (modify-phases %standard-phases |
| 402 | (delete 'configure)) ; no configure script |
| 403 | #:make-flags (list (string-append "CC=" ,(cc-for-target)) |
| 404 | (string-append "PREFIX=" (assoc-ref %outputs "out")) |
| 405 | "NO_HASH_CHECK=1" |
| 406 | "USE_LARGE_FILES=1" |
| 407 | "USE_LONG_OPTIONS=1" |
| 408 | "USE_PTHREADS=1") |
| 409 | #:tests? #f)) ; no tests |
| 410 | (home-page "https://github.com/Rudde/mktorrent") |
| 411 | (synopsis "Utility to create BitTorrent metainfo files") |
| 412 | (description |
| 413 | "mktorrent is a simple command-line utility to create BitTorrent |
| 414 | @dfn{metainfo} files, often known simply as @dfn{torrents}, from both single |
| 415 | files and whole directories. It can add multiple trackers and web seed URLs, |
| 416 | and set the @code{private} flag to disallow advertisement through the |
| 417 | distributed hash table (@dfn{DHT}) and Peer Exchange. Hashing is multi-threaded |
| 418 | and will take advantage of multiple processor cores where possible.") |
| 419 | (license (list l:public-domain ; sha1.*, used to build without OpenSSL |
| 420 | l:gpl2+)))) ; with permission to link with OpenSSL |
| 421 | |
| 422 | (define-public libtorrent-rasterbar |
| 423 | (package |
| 424 | (name "libtorrent-rasterbar") |
| 425 | (version "1.2.8") |
| 426 | (source |
| 427 | (origin |
| 428 | (method url-fetch) |
| 429 | (uri |
| 430 | (string-append "https://github.com/arvidn/libtorrent/" |
| 431 | "releases/download/libtorrent-" version "/" |
| 432 | "libtorrent-rasterbar-" version ".tar.gz")) |
| 433 | (sha256 |
| 434 | (base32 "1phn4klzvfzvidv5g566pnrrxj8l0givpy6s4r17d45wznqxc006")))) |
| 435 | (build-system gnu-build-system) |
| 436 | (arguments |
| 437 | `(#:configure-flags |
| 438 | (list (string-append "--with-boost-libdir=" |
| 439 | (assoc-ref %build-inputs "boost") |
| 440 | "/lib") |
| 441 | "--enable-python-binding" |
| 442 | "--enable-tests") |
| 443 | #:make-flags (list |
| 444 | (string-append "LDFLAGS=-Wl,-rpath=" |
| 445 | (assoc-ref %outputs "out") "/lib")))) |
| 446 | (inputs `(("boost" ,boost) |
| 447 | ("openssl" ,openssl))) |
| 448 | (native-inputs `(("python" ,python-wrapper) |
| 449 | ("pkg-config" ,pkg-config))) |
| 450 | (home-page "https://www.libtorrent.org/") |
| 451 | (synopsis "Feature-complete BitTorrent implementation") |
| 452 | (description |
| 453 | "libtorrent-rasterbar is a feature-complete C++ BitTorrent implementation |
| 454 | focusing on efficiency and scalability. It runs on embedded devices as well as |
| 455 | desktops.") |
| 456 | (license l:bsd-2))) |
| 457 | |
| 458 | (define-public qbittorrent |
| 459 | (package |
| 460 | (name "qbittorrent") |
| 461 | (version "4.2.5") |
| 462 | (source |
| 463 | (origin |
| 464 | (method git-fetch) |
| 465 | (uri (git-reference |
| 466 | (url "https://github.com/qbittorrent/qBittorrent") |
| 467 | (commit (string-append "release-" version)))) |
| 468 | (file-name (git-file-name name version)) |
| 469 | (sha256 |
| 470 | (base32 "1n613ylg6i9gisgk0dbr2kpfasyizrkdjff1r8smd4vri2qrdksn")))) |
| 471 | (build-system gnu-build-system) |
| 472 | (arguments |
| 473 | `(#:configure-flags |
| 474 | (list (string-append "--with-boost-libdir=" |
| 475 | (assoc-ref %build-inputs "boost") |
| 476 | "/lib") |
| 477 | "--enable-debug" |
| 478 | "QMAKE_LRELEASE=lrelease") |
| 479 | #:modules ((guix build gnu-build-system) |
| 480 | (guix build qt-utils) |
| 481 | (guix build utils)) |
| 482 | #:imported-modules (,@%gnu-build-system-modules |
| 483 | (guix build qt-utils)) |
| 484 | #:phases |
| 485 | (modify-phases %standard-phases |
| 486 | (add-after 'install 'wrap-qt |
| 487 | (lambda* (#:key outputs inputs #:allow-other-keys) |
| 488 | (let ((out (assoc-ref outputs "out"))) |
| 489 | (wrap-qt-program "qbittorrent" #:output out #:inputs inputs)) |
| 490 | #t))))) |
| 491 | (native-inputs |
| 492 | `(("pkg-config" ,pkg-config) |
| 493 | ("qttools" ,qttools))) |
| 494 | (inputs |
| 495 | `(("boost" ,boost) |
| 496 | ("libtorrent-rasterbar" ,libtorrent-rasterbar) |
| 497 | ("openssl" ,openssl) |
| 498 | ("python" ,python-wrapper) |
| 499 | ("qtbase" ,qtbase-5) |
| 500 | ("qtsvg" ,qtsvg) |
| 501 | ("zlib" ,zlib))) |
| 502 | (home-page "https://www.qbittorrent.org/") |
| 503 | (synopsis "Graphical BitTorrent client") |
| 504 | (description |
| 505 | "qBittorrent is a BitTorrent client programmed in C++/Qt that uses |
| 506 | libtorrent (sometimes called libtorrent-rasterbar) by Arvid Norberg. |
| 507 | |
| 508 | It aims to be a good alternative to all other BitTorrent clients out there. |
| 509 | qBittorrent is fast, stable and provides unicode support as well as many |
| 510 | features.") |
| 511 | (license l:gpl2+))) |
| 512 | |
| 513 | (define-public deluge |
| 514 | (package |
| 515 | (name "deluge") |
| 516 | (version "2.0.3") |
| 517 | (source |
| 518 | (origin |
| 519 | (method url-fetch) |
| 520 | (uri (string-append |
| 521 | "https://ftp.osuosl.org/pub/deluge/source/" |
| 522 | (version-major+minor version) "/deluge-" version ".tar.xz")) |
| 523 | (sha256 |
| 524 | (base32 |
| 525 | "14d8kn2pvr1qv8mwqrxmj85jycr73vwfqz12hzag0ararbkfhyky")))) |
| 526 | (build-system python-build-system) |
| 527 | (propagated-inputs |
| 528 | `(("gtk+" ,gtk+) |
| 529 | ("librsvg" ,librsvg) |
| 530 | ("libtorrent" ,libtorrent-rasterbar) |
| 531 | ("python-pycairo" ,python-pycairo) |
| 532 | ("python-chardet" ,python-chardet) |
| 533 | ("python-dbus" ,python-dbus) |
| 534 | ("python-mako" ,python-mako) |
| 535 | ("python-pygobject" ,python-pygobject) |
| 536 | ("python-pillow" ,python-pillow) |
| 537 | ("python-pyopenssl" ,python-pyopenssl) |
| 538 | ("python-pyxdg" ,python-pyxdg) |
| 539 | ("python-rencode" ,python-rencode) |
| 540 | ("python-service-identity" ,python-service-identity) |
| 541 | ("python-setproctitle" ,python-setproctitle) |
| 542 | ("python-six" ,python-six) |
| 543 | ("python-twisted" ,python-twisted) |
| 544 | ("python-zope-interface" ,python-zope-interface))) |
| 545 | (native-inputs |
| 546 | `(("intltool" ,intltool) |
| 547 | ("python-wheel" ,python-wheel))) |
| 548 | ;; TODO: Enable tests. |
| 549 | ;; After "pytest-twisted" is packaged, HOME is set, and an X server is |
| 550 | ;; started, some of the tests still fail. There are likely some tests |
| 551 | ;; that require a network connection. |
| 552 | (arguments |
| 553 | `(#:tests? #f |
| 554 | #:phases |
| 555 | (modify-phases %standard-phases |
| 556 | ;; Remove this phase when upgrading to version 2.0.4 or beyond, as |
| 557 | ;; the issue is fixed upstream. |
| 558 | (add-after 'unpack 'fix-gettext-warning |
| 559 | (lambda _ |
| 560 | (substitute* "deluge/i18n/util.py" |
| 561 | (("names='ngettext'") "names=['ngettext']")) |
| 562 | #t)) |
| 563 | (add-after 'install 'wrap |
| 564 | (lambda* (#:key outputs #:allow-other-keys) |
| 565 | (let ((out (assoc-ref outputs "out")) |
| 566 | (gi-typelib-path (getenv "GI_TYPELIB_PATH"))) |
| 567 | (for-each |
| 568 | (lambda (program) |
| 569 | (wrap-program program |
| 570 | `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path)))) |
| 571 | (map (lambda (name) |
| 572 | (string-append out "/bin/" name)) |
| 573 | '("deluge" "deluge-gtk")))) |
| 574 | #t))))) |
| 575 | (home-page "https://www.deluge-torrent.org/") |
| 576 | (synopsis "Fully-featured cross-platform BitTorrent client") |
| 577 | (description |
| 578 | "Deluge contains the common features to BitTorrent clients such as |
| 579 | Protocol Encryption, DHT, Local Peer Discovery (LSD), Peer Exchange |
| 580 | (PEX), UPnP, NAT-PMP, Proxy support, Web seeds, global and per-torrent |
| 581 | speed limits. Deluge heavily utilises the libtorrent library. It is |
| 582 | designed to run as both a normal standalone desktop application and as a |
| 583 | client-server.") |
| 584 | (license l:gpl3+))) |