nixpkgs/pkgs/by-name/yt/yt-dlg/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
941 B
Nix
Raw Normal View History

2024-03-17 00:12:33 +00:00
{
lib,
2024-09-02 11:25:37 +00:00
python3Packages,
2024-03-17 00:12:33 +00:00
fetchFromGitHub,
}:
python3Packages.buildPythonApplication rec {
pname = "yt-dlg";
version = "1.8.5";
src = fetchFromGitHub {
owner = "oleksis";
repo = "youtube-dl-gui";
rev = "v${version}";
hash = "sha256-W1ZlArmM+Ro5MF/rB88me/PD79dJA4v188mPbMd8Kow=";
};
pyproject = true;
2024-09-02 11:25:37 +00:00
pythonRelaxDeps = [ "wxpython" ];
2024-03-17 00:12:33 +00:00
build-system = with python3Packages; [
setuptools
wheel
];
dependencies = with python3Packages; [
pypubsub
wxpython
];
2024-06-12 21:22:04 +00:00
postInstall = ''
install -Dm444 yt-dlg.desktop -t $out/share/applications
cp -r youtube_dl_gui/data/* $out/share
'';
2024-03-17 00:12:33 +00:00
meta = {
description = "Cross platform front-end GUI of the popular youtube-dl written in wxPython";
homepage = "https://oleksis.github.io/youtube-dl-gui";
license = lib.licenses.unlicense;
mainProgram = "yt-dlg";
maintainers = with lib.maintainers; [ quantenzitrone ];
};
}