depot/third_party/nixpkgs/pkgs/applications/video/anime-downloader/default.nix
Default email c6ca5b8f13 Project import generated by Copybara.
GitOrigin-RevId: e4d49de45a3b5dbcb881656b4e3986e666141ea9
2022-07-18 18:21:45 +02:00

54 lines
1.4 KiB
Nix

{ lib, python3, aria2, mpv, nodejs, qt5, fetchFromGitHub }:
python3.pkgs.buildPythonApplication rec {
pname = "anime-downloader";
version = "5.0.14";
src = fetchFromGitHub {
owner = "anime-dl";
repo = "anime-downloader";
rev = version;
sha256 = "sha256-Uk2mtsSrb8fCD9JCFzvLBzMEB7ViVDrKPSOKy9ALJ6o=";
};
nativeBuildInputs = [ qt5.wrapQtAppsHook ];
propagatedBuildInputs = [
aria2
mpv
nodejs
] ++ (with python3.pkgs; [
beautifulsoup4
cfscrape
click
coloredlogs
fuzzywuzzy
jsbeautifier
pycryptodome
pySmartDL
pyqt5
requests
requests-cache
selenium
tabulate
]);
preFixup = ''
wrapQtApp "$out/bin/anime" --prefix PATH : ${lib.makeBinPath propagatedBuildInputs}
'';
doCheck = false;
# FIXME: checks must be disabled because they are lacking the qt env.
# They fail like this, even if built and wrapped with all Qt and runtime dependencies.
# Ref.: https://github.com/NixOS/nixpkgs/blob/634141959076a8ab69ca2cca0f266852256d79ee/pkgs/applications/misc/openlp/lib.nix#L20-L23
passthru.updateScript = ./update.sh;
meta = with lib; {
homepage = "https://github.com/anime-dl/anime-downloader";
description = "A simple but powerful anime downloader and streamer";
license = licenses.unlicense;
platforms = platforms.linux;
maintainers = with maintainers; [ WeebSorceress ];
};
}