3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/misc/variety/default.nix

88 lines
2.3 KiB
Nix
Raw Normal View History

2020-12-29 01:14:00 +00:00
{ stdenv, lib, fetchFromGitHub
, python3Packages
2020-12-29 01:14:00 +00:00
, fehSupport ? false, feh
, imagemagickSupport ? true, imagemagick
2019-10-04 11:10:22 +01:00
, intltool
, gtk3
, gexiv2
, libnotify
, gobject-introspection
, hicolor-icon-theme
, librsvg
2020-12-29 01:14:00 +00:00
, wrapGAppsHook
2021-06-04 13:16:19 +01:00
, makeWrapper
2019-10-04 11:10:22 +01:00
}:
with python3Packages;
2019-10-04 11:10:22 +01:00
buildPythonApplication rec {
pname = "variety";
2020-12-29 01:14:00 +00:00
version = "0.8.5";
2019-10-04 11:10:22 +01:00
src = fetchFromGitHub {
owner = "varietywalls";
repo = "variety";
2020-12-29 01:14:00 +00:00
rev = version;
sha256 = "sha256-6dLz4KXavXwnk5GizBH46d2EHMHPjRo0WnnUuVMtI1M=";
2019-10-04 11:10:22 +01:00
};
nativeBuildInputs = [ makeWrapper intltool wrapGAppsHook ];
2019-10-04 11:10:22 +01:00
buildInputs = [ distutils_extra ];
2019-10-04 11:10:22 +01:00
doCheck = false;
postInstall = ''
wrapProgram $out/bin/variety --suffix XDG_DATA_DIRS : ${gtk3}/share/gsettings-schemas/${gtk3.name}/
'';
2021-06-04 13:16:19 +01:00
2019-10-04 11:10:22 +01:00
prePatch = ''
substituteInPlace variety_lib/varietyconfig.py \
--replace "__variety_data_directory__ = \"../data\"" "__variety_data_directory__ = \"$out/share/variety\""
substituteInPlace data/scripts/set_wallpaper \
--replace /bin/bash ${stdenv.shell}
substituteInPlace data/scripts/get_wallpaper \
--replace /bin/bash ${stdenv.shell}
'';
2020-12-29 01:14:00 +00:00
propagatedBuildInputs = [
beautifulsoup4
configobj
dbus-python
gexiv2
gobject-introspection
gtk3
hicolor-icon-theme
httplib2
libnotify
librsvg
lxml
pillow
pycairo
pygobject3
requests
setuptools
] ++ lib.optional fehSupport feh
2019-10-04 11:10:22 +01:00
++ lib.optional imagemagickSupport imagemagick;
meta = with lib; {
homepage = "https://github.com/varietywalls/variety";
2020-12-29 01:14:00 +00:00
description = "A wallpaper manager for Linux systems";
longDescription = ''
Variety is a wallpaper manager for Linux systems. It supports numerous
desktops and wallpaper sources, including local files and online services:
Flickr, Wallhaven, Unsplash, and more.
Where supported, Variety sits as a tray icon to allow easy pausing and
resuming. Otherwise, its desktop entry menu provides a similar set of
options.
Variety also includes a range of image effects, such as oil painting and
blur, as well as options to layer quotes and a clock onto the background.
'';
2019-10-04 11:10:22 +01:00
license = licenses.gpl3;
2021-06-04 13:16:19 +01:00
maintainers = with maintainers; [ p3psi AndersonTorres zfnmxt ];
2020-12-29 01:14:00 +00:00
platforms = with platforms; linux;
2019-10-04 11:10:22 +01:00
};
}