nixpkgs/pkgs/applications/video/tartube/default.nix
Sam Connelly 7c66fb1ec5 migrate maintainership from luc65r to clevor
They said they haven't used Nix in a while and is not interested in
maintaining cemu-ti (presumably other packages too), so I asked to take
over his role. I removed luc65r from the meta.maintainers attribtes, and
adopted the packages I wanted to adopt. I chose to adopt the TI graphing
calculator-related packages as I am part of Cemetech.
2024-11-17 14:30:20 -05:00

80 lines
1.4 KiB
Nix

{ lib
, fetchFromGitHub
, gdk-pixbuf
, gobject-introspection
, gtk3
, libnotify
, pango
, python3Packages
, wrapGAppsHook3
, youtube-dl
, glib
, ffmpeg
, aria2
}:
python3Packages.buildPythonApplication rec {
pname = "tartube";
version = "2.5.040";
src = fetchFromGitHub {
owner = "axcore";
repo = "tartube";
rev = "refs/tags/v${version}";
sha256 = "sha256-yFsQbEXjWPxLYqFxsI6MjK1hE8Lk2Z0sPj3peLBs7r8=";
};
nativeBuildInputs = [
gobject-introspection
wrapGAppsHook3
];
strictDeps = false;
propagatedBuildInputs = with python3Packages; [
moviepy
pygobject3
pyxdg
requests
feedparser
playsound
ffmpeg
matplotlib
aria2
];
buildInputs = [
gdk-pixbuf
gtk3
glib
libnotify
pango
];
postPatch = ''
sed -i "/^\s*'pgi',$/d" setup.py
'';
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 = [
"--prefix PATH : ${lib.makeBinPath [ youtube-dl ]}"
];
meta = with lib; {
description = "GUI front-end for youtube-dl";
license = licenses.gpl3;
platforms = platforms.linux;
maintainers = with maintainers; [ mkg20001 ];
homepage = "https://tartube.sourceforge.io/";
mainProgram = "tartube";
};
}