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