2021-01-25 09:26:54 +01:00
|
|
|
{ lib, fetchurl, intltool, libtorrent-rasterbar, pythonPackages
|
2020-05-10 02:55:31 +02:00
|
|
|
, gtk3, glib, gobject-introspection, librsvg, wrapGAppsHook }:
|
2019-07-06 02:43:54 +02:00
|
|
|
|
|
|
|
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
|
2020-12-20 14:35:14 +01:00
|
|
|
libtorrent-rasterbar.dev libtorrent-rasterbar.python setuptools
|
2019-07-06 02:43:54 +02:00
|
|
|
setproctitle pillow rencode six zope_interface
|
|
|
|
dbus-python pygobject3 pycairo
|
2019-07-10 00:46:27 +02:00
|
|
|
gtk3 gobject-introspection librsvg
|
2019-07-06 02:43:54 +02:00
|
|
|
];
|
|
|
|
|
2020-05-10 02:55:31 +02:00
|
|
|
nativeBuildInputs = [ intltool wrapGAppsHook glib ];
|
2019-07-06 02:43:54 +02:00
|
|
|
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2019-07-06 02:43:54 +02:00
|
|
|
homepage = "https://deluge-torrent.org";
|
|
|
|
description = "Torrent client";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ domenkozar ebzzry ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|