summary refs log tree commit diff
path: root/pkgs/applications/networking/p2p/deluge/default.nix
blob: 4587da48a4a0d41bbd912674ccdf44eb044f8b62 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{ lib, fetchurl, intltool, libtorrent-rasterbar, pythonPackages
, gtk3, glib, gobject-introspection, librsvg, wrapGAppsHook }:

pythonPackages.buildPythonPackage rec {
  pname = "deluge";
  version = "2.0.3";

  src = fetchurl {
    url = "http://download.deluge-torrent.org/source/2.0/${pname}-${version}.tar.xz";
    sha256 = "14d8kn2pvr1qv8mwqrxmj85jycr73vwfqz12hzag0ararbkfhyky";
  };

  propagatedBuildInputs = with pythonPackages; [
    twisted Mako chardet pyxdg pyopenssl service-identity
    libtorrent-rasterbar.dev libtorrent-rasterbar.python setuptools
    setproctitle pillow rencode six zope_interface
    dbus-python pygobject3 pycairo
    gtk3 gobject-introspection librsvg
  ];

  nativeBuildInputs = [ intltool wrapGAppsHook glib ];

  checkInputs = with pythonPackages; [
    pytest /* pytest-twisted */ pytestcov mock
    mccabe pylint
  ];

  doCheck = false; # until pytest-twisted is packaged

  postInstall = ''
     mkdir -p $out/share/applications
     cp -R deluge/ui/data/pixmaps $out/share/
     cp -R deluge/ui/data/icons $out/share/
     cp deluge/ui/data/share/applications/deluge.desktop $out/share/applications
  '';

  meta = with lib; {
    homepage = "https://deluge-torrent.org";
    description = "Torrent client";
    license = licenses.gpl3Plus;
    maintainers = with maintainers; [ domenkozar ebzzry ];
    platforms = platforms.all;
  };
}