mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
45 lines
1.4 KiB
Nix
45 lines
1.4 KiB
Nix
{ lib, stdenv, 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;
|
|
};
|
|
}
|