deluge: 1.3.15 -> 2.0.3

* let's try 2.0 version now, no time better than the present! Maybe!
* bz2 -> xz
* maybe python3
* disable pyGtkGlade for deps, maybe not needed?
* fix gtk/etc deps, deluge-gtk works! \o/
* restore installation of images and such

The old version is kept available as some torrent trackers have not
updated their whitelists yet.
This commit is contained in:
Will Dietz 2019-07-05 19:43:54 -05:00 committed by Milan
parent ca722c5e2b
commit 9ae8499342
3 changed files with 52 additions and 3 deletions

View file

@ -0,0 +1,44 @@
{ stdenv, fetchurl, intltool, libtorrentRasterbar, pythonPackages
, gtk3, gobjectIntrospection, 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
libtorrentRasterbar.dev libtorrentRasterbar.python setuptools
setproctitle pillow rencode six zope_interface
dbus-python pygobject3 pycairo
gtk3 gobjectIntrospection librsvg
];
nativeBuildInputs = [ intltool wrapGAppsHook ];
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 stdenv.lib; {
homepage = "https://deluge-torrent.org";
description = "Torrent client";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ domenkozar ebzzry ];
platforms = platforms.all;
};
}

View file

@ -2839,10 +2839,15 @@ in
ddrutility = callPackage ../tools/system/ddrutility { };
deluge = callPackage ../applications/networking/p2p/deluge {
libtorrentRasterbar = libtorrentRasterbar-1_1_x;
pythonPackages = python2Packages;
deluge-2_x = callPackage ../applications/networking/p2p/deluge/2 {
pythonPackages = python3Packages;
libtorrentRasterbar = libtorrentRasterbar.override { python = python3; };
};
deluge-1_x = callPackage ../applications/networking/p2p/deluge/1 {
pythonPackages = python2Packages;
libtorrentRasterbar = libtorrentRasterbar-1_1_x;
};
deluge = deluge-2_x;
desktop-file-utils = callPackage ../tools/misc/desktop-file-utils { };