2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-05-03 17:38:23 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, gdk-pixbuf
|
|
|
|
, gobject-introspection
|
|
|
|
, gtk3
|
|
|
|
, libnotify
|
|
|
|
, pango
|
|
|
|
, python3Packages
|
|
|
|
, wrapGAppsHook
|
|
|
|
, youtube-dl
|
|
|
|
, glib
|
2021-01-09 10:05:03 +00:00
|
|
|
, ffmpeg
|
2024-04-21 15:54:59 +00:00
|
|
|
, aria2
|
2020-05-03 17:38:23 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "tartube";
|
2024-01-25 14:12:00 +00:00
|
|
|
version = "2.5.0";
|
2020-05-03 17:38:23 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "axcore";
|
|
|
|
repo = "tartube";
|
2022-09-09 14:08:57 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-01-25 14:12:00 +00:00
|
|
|
sha256 = "sha256-IcJDh8Q9K6SROZWVi98R1N2kSdgwJczScLdJFKy2FIU=";
|
2020-05-03 17:38:23 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
gobject-introspection
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
strictDeps = false;
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
|
|
moviepy
|
|
|
|
pygobject3
|
|
|
|
pyxdg
|
|
|
|
requests
|
2020-06-18 07:06:33 +00:00
|
|
|
feedparser
|
|
|
|
playsound
|
2021-01-09 10:05:03 +00:00
|
|
|
ffmpeg
|
2021-02-05 17:12:51 +00:00
|
|
|
matplotlib
|
2024-04-21 15:54:59 +00:00
|
|
|
aria2
|
2020-05-03 17:38:23 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gdk-pixbuf
|
|
|
|
gtk3
|
|
|
|
glib
|
|
|
|
libnotify
|
|
|
|
pango
|
|
|
|
];
|
|
|
|
|
2020-06-18 07:06:33 +00:00
|
|
|
postPatch = ''
|
2021-02-05 17:12:51 +00:00
|
|
|
sed -i "/^\s*'pgi',$/d" setup.py
|
2020-06-18 07:06:33 +00:00
|
|
|
'';
|
|
|
|
|
2020-05-03 17:38:23 +00: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 22:18:51 +00:00
|
|
|
"--prefix PATH : ${lib.makeBinPath [ youtube-dl ]}"
|
2020-05-03 17:38:23 +00: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/";
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "tartube";
|
2020-05-03 17:38:23 +00:00
|
|
|
};
|
|
|
|
}
|