5da1393030
At the moment, runing `deluge` with the deluge package installed returns "No GSettings schemas are installed on the system". After this patch, XDG_DATA_DIRS includes the gsettings-desktop-schemas, which means the program actually manages to launch.
45 lines
1.4 KiB
Nix
45 lines
1.4 KiB
Nix
{ stdenv, fetchurl, intltool, libtorrentRasterbar, 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
|
|
libtorrentRasterbar.dev libtorrentRasterbar.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 stdenv.lib; {
|
|
homepage = "https://deluge-torrent.org";
|
|
description = "Torrent client";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ domenkozar ebzzry ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|