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