nixpkgs-suyu/pkgs/applications/video/tartube/default.nix

79 lines
1.4 KiB
Nix
Raw Normal View History

{ lib
2020-04-24 19:29:46 +02:00
, fetchFromGitHub
, gdk-pixbuf
, gobject-introspection
, gtk3
, libnotify
, pango
, python3Packages
, wrapGAppsHook
, youtube-dl
, glib
, ffmpeg
2021-02-04 14:57:33 +01:00
, aria
2020-04-24 19:29:46 +02:00
}:
python3Packages.buildPythonApplication rec {
pname = "tartube";
2021-02-04 14:57:33 +01:00
version = "2.3.085";
2020-04-24 19:29:46 +02:00
src = fetchFromGitHub {
owner = "axcore";
repo = "tartube";
rev = "v${version}";
2021-02-04 14:57:33 +01:00
sha256 = "bkz64nj6748552ZMRcL/I1lUXGpZjaATUEqv3Kkphck=";
2020-04-24 19:29:46 +02:00
};
nativeBuildInputs = [
gobject-introspection
wrapGAppsHook
];
strictDeps = false;
propagatedBuildInputs = with python3Packages; [
moviepy
pygobject3
pyxdg
requests
2020-05-07 22:32:09 +02:00
feedparser
playsound
ffmpeg
2021-02-04 14:57:33 +01:00
matplotlib
aria
2020-04-24 19:29:46 +02:00
];
buildInputs = [
gdk-pixbuf
gtk3
glib
libnotify
pango
];
2020-05-07 22:32:09 +02:00
postPatch = ''
2021-02-04 14:57:33 +01:00
sed -i "/^\s*'pgi',$/d" setup.py
2020-05-07 22:32:09 +02:00
'';
2020-04-24 19:29:46 +02:00
postInstall = ''
mkdir -p $out/share/{man/man1,applications,pixmaps}
cp pack/tartube.1 $out/share/man/man1
cp pack/tartube.desktop $out/share/applications
cp pack/tartube.{png,xpm} $out/share/pixmaps
'';
doCheck = false;
makeWrapperArgs = [
2021-01-15 06:42:41 +01:00
"--prefix PATH : ${lib.makeBinPath [ youtube-dl ]}"
2020-04-24 19:29:46 +02:00
];
meta = with lib; {
description = "A GUI front-end for youtube-dl";
license = licenses.gpl3;
platforms = platforms.linux;
maintainers = with maintainers; [ mkg20001 luc65r ];
homepage = "https://tartube.sourceforge.io/";
};
}