gnu: transmission-remote-gtk: Update to 1.4.2.
[jackhill/guix/guix.git] / gnu / packages / bittorrent.scm
CommitLineData
3963a729 1;;; GNU Guix --- Functional package management for GNU
df66fee7 2;;; Copyright © 2014 Taylan Ulrich Bayirli/Kammer <taylanbayirli@gmail.com>
07366434 3;;; Copyright © 2014, 2015, 2016 Ludovic Courtès <ludo@gnu.org>
9c77cbba 4;;; Copyright © 2016, 2017, 2018, 2019, 2020 Leo Famulari <leo@famulari.name>
a6b64691 5;;; Copyright © 2016, 2017, 2018, 2019, 2020 Efraim Flashner <efraim@flashner.co.il>
4b67098d 6;;; Copyright © 2016 Tomáš Čech <sleep_walker@gnu.org>
dbd0b46d 7;;; Copyright © 2016, 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
4e58e9d0 8;;; Copyright © 2017 Jelle Licht <jlicht@fsfe.org>
f8fbe376 9;;; Copyright © 2018 Fis Trivial <ybbs.daans@hotmail.com>
39da44c2 10;;; Copyright © 2018 Nam Nguyen <namn@berkeley.edu>
8322ecb0 11;;; Copyright © 2018 Ricardo Wurmus <rekado@elephly.net>
c15a2cd9 12;;; Copyright © 2019, 2020 Brett Gilio <brettg@gnu.org>
7e24e1e5 13;;; Copyright © 2020 Hartmut Goebel <h.goebel@crazy-compilers.com>
9cb35c02 14;;; Copyright © 2021 Justin Veilleux <terramorpha@cock.li>
3963a729
LC
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)
e906f4e1 34 #:use-module (guix git-download)
3963a729 35 #:use-module (guix build-system gnu)
feb767b2 36 #:use-module (guix build-system python)
4cdec09a 37 #:use-module (guix build-system glib-or-gtk)
b5b73a82 38 #:use-module ((guix licenses) #:prefix l:)
01d5eec9 39 #:use-module (guix utils)
3c569804 40 #:use-module (gnu packages)
f66842dc 41 #:use-module (gnu packages adns)
9cb35c02 42 #:use-module (gnu packages autotools)
4e58e9d0 43 #:use-module (gnu packages boost)
f66842dc
EF
44 #:use-module (gnu packages check)
45 #:use-module (gnu packages compression)
4b67098d 46 #:use-module (gnu packages crypto)
3963a729 47 #:use-module (gnu packages curl)
f66842dc 48 #:use-module (gnu packages cyrus-sasl)
c2be790f 49 #:use-module (gnu packages freedesktop)
9cb35c02 50 #:use-module (gnu packages gettext)
3963a729 51 #:use-module (gnu packages glib)
4b67098d
52 #:use-module (gnu packages gnome)
53 #:use-module (gnu packages gnupg)
54 #:use-module (gnu packages gstreamer)
df66fee7 55 #:use-module (gnu packages gtk)
f66842dc 56 #:use-module (gnu packages libevent)
f66842dc
EF
57 #:use-module (gnu packages multiprecision)
58 #:use-module (gnu packages nettle)
2d8dc79c 59 #:use-module (gnu packages ncurses)
f66842dc 60 #:use-module (gnu packages pkg-config)
feb767b2 61 #:use-module (gnu packages python)
dbcd2050 62 #:use-module (gnu packages python-build)
c2be790f 63 #:use-module (gnu packages python-crypto)
01d5eec9 64 #:use-module (gnu packages python-web)
44d10b1f 65 #:use-module (gnu packages python-xyz)
f8fbe376 66 #:use-module (gnu packages qt)
cd0322a3 67 #:use-module (gnu packages sqlite)
f66842dc
EF
68 #:use-module (gnu packages ssh)
69 #:use-module (gnu packages tls)
70 #:use-module (gnu packages xml))
3963a729
LC
71
72(define-public transmission
73 (package
74 (name "transmission")
7233b19f 75 (version "3.00")
3963a729
LC
76 (source (origin
77 (method url-fetch)
7233b19f
LF
78 (uri (string-append "https://github.com/transmission/transmission"
79 "/releases/download/" version "/transmission-"
80 version ".tar.xz"))
3963a729
LC
81 (sha256
82 (base32
1d634451
SS
83 "1wjmn96zrvmk8j1yz2ysmqd7a2x6ilvnwwapcvfzgxs2wwpnai4i"))
84 (patches (search-patches "transmission-honor-localedir.patch"))))
4cdec09a 85 (build-system glib-or-gtk-build-system)
3963a729
LC
86 (outputs '("out" ; library and command-line interface
87 "gui")) ; graphical user interface
88 (arguments
1d634451
SS
89 '(#:configure-flags
90 (list (string-append "--localedir="
91 (assoc-ref %outputs "gui")
92 "/share/locale"))
c16341bb
MO
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
1d634451 97 #:glib-or-gtk-wrap-excluded-outputs '("out")
dc1d3cde
KK
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")
7233b19f 108 (string-append gui "/bin/transmission-gtk"))
07366434 109
bf155ce3
PN
110 (for-each
111 (lambda (dir)
112 (rename-file (string-append out "/share/" dir)
113 (string-append gui "/share/" dir)))
1d634451 114 '("appdata" "applications" "icons" "pixmaps"))
0305bc91
SS
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))))))
3963a729 121 (inputs
559491ea 122 `(("libevent" ,libevent)
3963a729
LC
123 ("curl" ,curl)
124 ("openssl" ,openssl)
3963a729
LC
125 ("zlib" ,zlib)
126 ("gtk+" ,gtk+)))
127 (native-inputs
128 `(("intltool" ,intltool)
129 ("pkg-config" ,pkg-config)))
c4cfa9c6 130 (home-page "https://transmissionbt.com/")
3963a729
LC
131 (synopsis "Fast and easy BitTorrent client")
132 (description
133 "Transmission is a BitTorrent client that comes with graphical,
134textual, and Web user interfaces. Transmission also has a daemon for
e881752c 135unattended operations. It supports local peer discovery, full encryption,
3963a729
LC
136DHT, µ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.
559491ea 146 (license (list l:gpl2 l:gpl3))))
df66fee7 147
9cb35c02
JV
148(define-public transmission-remote-gtk
149 (package
150 (name "transmission-remote-gtk")
eceecd8a 151 (version "1.4.2")
9cb35c02
JV
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
eceecd8a 158 ".tar.gz"))
9cb35c02 159 (sha256
eceecd8a 160 (base32 "0qz9wi70qc6vgnaymivc3xz6y86c9hglk6wjv3snnqxpxmp9saay"))))
9cb35c02
JV
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
172of 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
df66fee7
LC
176(define-public libtorrent
177 (package
178 (name "libtorrent")
9e171634 179 (version "0.13.8")
df66fee7
LC
180 (source (origin
181 (method url-fetch)
182 (uri (string-append
29b4c57b 183 "http://rtorrent.net/downloads/libtorrent-"
df66fee7
LC
184 version ".tar.gz"))
185 (sha256
186 (base32
9e171634 187 "10z9i1rc41cmmi7nx8k7k1agsx6afv09g9cl7g9zr35fyhl5l4gd"))))
df66fee7
LC
188 (build-system gnu-build-system)
189 (inputs `(("openssl" ,openssl)
190 ("zlib" ,zlib)))
191 (native-inputs `(("pkg-config" ,pkg-config)
29b4c57b 192 ("cppunit" ,cppunit)))
df66fee7
LC
193 (synopsis "BitTorrent library of rtorrent")
194 (description
195 "LibTorrent is a BitTorrent library used by and developed in parallel
196with the BitTorrent client rtorrent. It is written in C++ with emphasis on
197speed and efficiency.")
9db04bf5 198 (home-page "https://github.com/rakshasa/libtorrent")
df66fee7 199 (license l:gpl2+)))
2d8dc79c
TUBK
200
201(define-public rtorrent
202 (package
203 (name "rtorrent")
0cbec2aa 204 (version "0.9.8")
2d8dc79c
TUBK
205 (source (origin
206 (method url-fetch)
207 (uri (string-append
9fbd458b 208 "http://rtorrent.net/downloads/rtorrent-"
2d8dc79c
TUBK
209 version ".tar.gz"))
210 (sha256
211 (base32
0cbec2aa 212 "1bs2fnf4q7mlhkhzp3i1v052v9xn8qa7g845pk9ia8hlpw207pwy"))))
2d8dc79c
TUBK
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
225full encryption, DHT, PEX, and Magnet Links. It can also be controlled via
226XML-RPC over SCGI.")
9db04bf5 227 (home-page "https://github.com/rakshasa/rtorrent")
2d8dc79c 228 (license l:gpl2+)))
e906f4e1
LF
229
230(define-public tremc
9c77cbba
LF
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
e906f4e1 258Transmission BitTorrent daemon.")
9c77cbba
LF
259 (home-page "https://github.com/tremc/tremc")
260 (license l:gpl3+)))
feb767b2
LF
261
262(define-public transmission-remote-cli
263 (package
264 (name "transmission-remote-cli")
265 (version "1.7.1")
266 (source (origin
8322ecb0
RW
267 (method git-fetch)
268 (uri (git-reference
b0e7b699 269 (url "https://github.com/fagga/transmission-remote-cli")
8322ecb0
RW
270 (commit (string-append "v" version))))
271 (file-name (git-file-name name version))
feb767b2
LF
272 (sha256
273 (base32
8322ecb0 274 "09w9f8vrm61lapin8fmq4rgahr95y3c6wss10g0fgd0kl16f895v"))))
feb767b2
LF
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
aaf111a2
LF
299interface, for the Transmission BitTorrent daemon. This package is no longer
300maintained upstream.")
feb767b2 301 (home-page "https://github.com/fagga/transmission-remote-cli")
aaf111a2
LF
302 (license l:gpl3+)
303 (properties `((superseded . ,tremc)))))
f66842dc
EF
304
305(define-public aria2
306 (package
307 (name "aria2")
7b6a8e23 308 (version "1.35.0")
f66842dc
EF
309 (source (origin
310 (method url-fetch)
7b6a8e23
EF
311 (uri (string-append "https://github.com/aria2/aria2/releases/"
312 "download/release-" version
313 "/aria2-" version ".tar.xz"))
f66842dc
EF
314 (sha256
315 (base32
7b6a8e23 316 "1zbxc517d97lb96f15xcy4l7b66grxrp3h2ids2jiwkaip87yaqy"))))
f66842dc
EF
317 (build-system gnu-build-system)
318 (arguments
d2a7a145
EF
319 `(#:configure-flags (list "--enable-libaria2"
320 (string-append "--with-bashcompletiondir="
321 %output "/etc/bash_completion.d/"))
f66842dc
EF
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)
9c64f76e
EF
331 (string-append "// " text)))
332 #t)))))
f66842dc 333 (native-inputs
5bed95ef
EF
334 `(("cppunit" ,cppunit) ; for the tests
335 ("pkg-config" ,pkg-config)))
f66842dc
EF
336 (inputs
337 `(("c-ares" ,c-ares)
f66842dc
EF
338 ("gnutls" ,gnutls)
339 ("gmp" ,gmp)
340 ("libssh2" ,libssh2)
341 ("libxml2" ,libxml2)
342 ("nettle" ,nettle)
343 ("sqlite" ,sqlite)
344 ("zlib" ,zlib)))
5bed95ef 345 (home-page "https://aria2.github.io/")
f66842dc
EF
346 (synopsis "Utility for parallel downloading files")
347 (description
348 "Aria2 is a lightweight, multi-protocol & multi-source command-line
349download utility. It supports HTTP/HTTPS, FTP, SFTP, BitTorrent and Metalink.
350Aria2 can be manipulated via built-in JSON-RPC and XML-RPC interfaces.")
351 (license l:gpl2+)))
4b67098d 352
4b67098d
353(define-public uget
354 (package
355 (name "uget")
5a3d6ad1 356 (version "2.2.1")
b2d35dd9
NG
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
5a3d6ad1 364 (base32 "0dlrjhnm1pg2vwmp7nl2xv1aia5hyirb3021rl46x859k63zap24"))))
4b67098d 365 (build-system gnu-build-system)
4b67098d
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
c7ad32d9
EF
376 `(("intltool" ,intltool)
377 ("pkg-config" ,pkg-config)))
950f1697 378 (home-page "https://ugetdm.com/")
4b67098d
379 (synopsis "Universal download manager with GTK+ interface")
380 (description
381 "uGet is portable download manager with GTK+ interface supporting
382HTTP, HTTPS, BitTorrent and Metalink, supporting multi-connection
383downloads, download scheduling, download rate limiting.")
384 (license l:lgpl2.1+)))
8975d00c
TGR
385
386(define-public mktorrent
387 (package
388 (name "mktorrent")
fd90e396 389 (version "1.1")
8975d00c 390 (source (origin
4342a046
RW
391 (method git-fetch)
392 (uri (git-reference
b0e7b699 393 (url "https://github.com/Rudde/mktorrent")
4342a046
RW
394 (commit (string-append "v" version))))
395 (file-name (git-file-name name version))
8975d00c
TGR
396 (sha256
397 (base32
4342a046 398 "17pdc5mandl739f8q26n5is8ga56s83aqcrwhlnnplbxwx2inidr"))))
8975d00c
TGR
399 (build-system gnu-build-system)
400 (arguments
401 `(#:phases (modify-phases %standard-phases
402 (delete 'configure)) ; no configure script
a6b64691 403 #:make-flags (list (string-append "CC=" ,(cc-for-target))
8975d00c
TGR
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
fd90e396 410 (home-page "https://github.com/Rudde/mktorrent")
8975d00c 411 (synopsis "Utility to create BitTorrent metainfo files")
897bd0b5
TGR
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
415files and whole directories. It can add multiple trackers and web seed URLs,
416and set the @code{private} flag to disallow advertisement through the
417distributed hash table (@dfn{DHT}) and Peer Exchange. Hashing is multi-threaded
8975d00c
TGR
418and 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
4e58e9d0
JL
421
422(define-public libtorrent-rasterbar
423 (package
424 (name "libtorrent-rasterbar")
2d25c635
TGR
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"))))
4e58e9d0
JL
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"
7960bb27 442 "--enable-tests")
4e58e9d0
JL
443 #:make-flags (list
444 (string-append "LDFLAGS=-Wl,-rpath="
0fe041bd 445 (assoc-ref %outputs "out") "/lib"))))
4e58e9d0
JL
446 (inputs `(("boost" ,boost)
447 ("openssl" ,openssl)))
e22c2c78 448 (native-inputs `(("python" ,python-wrapper)
4e58e9d0 449 ("pkg-config" ,pkg-config)))
9270b2fb 450 (home-page "https://www.libtorrent.org/")
a7e3aec0 451 (synopsis "Feature-complete BitTorrent implementation")
4e58e9d0 452 (description
a7e3aec0 453 "libtorrent-rasterbar is a feature-complete C++ BitTorrent implementation
4e58e9d0
JL
454focusing on efficiency and scalability. It runs on embedded devices as well as
455desktops.")
456 (license l:bsd-2)))
457
f8fbe376
FT
458(define-public qbittorrent
459 (package
460 (name "qbittorrent")
dce70d0e 461 (version "4.2.5")
0748a7b2
TGR
462 (source
463 (origin
464 (method git-fetch)
465 (uri (git-reference
b0e7b699 466 (url "https://github.com/qbittorrent/qBittorrent")
0748a7b2
TGR
467 (commit (string-append "release-" version))))
468 (file-name (git-file-name name version))
469 (sha256
dce70d0e 470 (base32 "1n613ylg6i9gisgk0dbr2kpfasyizrkdjff1r8smd4vri2qrdksn"))))
f8fbe376
FT
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"
aaa88937
GLV
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
7e24e1e5
HG
487 (lambda* (#:key outputs inputs #:allow-other-keys)
488 (let ((out (assoc-ref outputs "out")))
489 (wrap-qt-program "qbittorrent" #:output out #:inputs inputs))
aaa88937 490 #t)))))
f8fbe376
FT
491 (native-inputs
492 `(("pkg-config" ,pkg-config)
493 ("qttools" ,qttools)))
494 (inputs
495 `(("boost" ,boost)
496 ("libtorrent-rasterbar" ,libtorrent-rasterbar)
497 ("openssl" ,openssl)
ea236462 498 ("python" ,python-wrapper)
ea0a5107 499 ("qtbase" ,qtbase-5)
f8fbe376
FT
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
506libtorrent (sometimes called libtorrent-rasterbar) by Arvid Norberg.
4e58e9d0 507
f8fbe376
FT
508It aims to be a good alternative to all other BitTorrent clients out there.
509qBittorrent is fast, stable and provides unicode support as well as many
510features.")
511 (license l:gpl2+)))
c2be790f
NN
512
513(define-public deluge
514 (package
515 (name "deluge")
01d5eec9 516 (version "2.0.3")
c2be790f
NN
517 (source
518 (origin
519 (method url-fetch)
520 (uri (string-append
01d5eec9
KK
521 "https://ftp.osuosl.org/pub/deluge/source/"
522 (version-major+minor version) "/deluge-" version ".tar.xz"))
c2be790f
NN
523 (sha256
524 (base32
01d5eec9 525 "14d8kn2pvr1qv8mwqrxmj85jycr73vwfqz12hzag0ararbkfhyky"))))
c2be790f 526 (build-system python-build-system)
01d5eec9
KK
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)))
c2be790f 545 (native-inputs
01d5eec9
KK
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.
c2be790f 552 (arguments
01d5eec9
KK
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)))))
c2be790f
NN
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
579Protocol Encryption, DHT, Local Peer Discovery (LSD), Peer Exchange
580(PEX), UPnP, NAT-PMP, Proxy support, Web seeds, global and per-torrent
581speed limits. Deluge heavily utilises the ​libtorrent library. It is
582designed to run as both a normal standalone desktop application and as a
583​client-server.")
584 (license l:gpl3+)))