2022-07-18 16:21:45 +00:00
|
|
|
{ lib, python3, aria2, mpv, nodejs, qt5, fetchFromGitHub }:
|
2022-06-26 10:26:21 +00:00
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "anime-downloader";
|
|
|
|
version = "5.0.14";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "anime-dl";
|
|
|
|
repo = "anime-downloader";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "sha256-Uk2mtsSrb8fCD9JCFzvLBzMEB7ViVDrKPSOKy9ALJ6o=";
|
|
|
|
};
|
|
|
|
|
2022-07-18 16:21:45 +00:00
|
|
|
nativeBuildInputs = [ qt5.wrapQtAppsHook ];
|
|
|
|
|
2022-06-26 10:26:21 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
aria2
|
|
|
|
mpv
|
|
|
|
nodejs
|
|
|
|
] ++ (with python3.pkgs; [
|
|
|
|
beautifulsoup4
|
|
|
|
cfscrape
|
|
|
|
click
|
|
|
|
coloredlogs
|
|
|
|
fuzzywuzzy
|
2022-07-14 12:49:19 +00:00
|
|
|
jsbeautifier
|
|
|
|
pycryptodome
|
2023-10-19 13:55:26 +00:00
|
|
|
pysmartdl
|
2022-06-26 10:26:21 +00:00
|
|
|
pyqt5
|
2022-07-14 12:49:19 +00:00
|
|
|
requests
|
2022-06-26 10:26:21 +00:00
|
|
|
requests-cache
|
|
|
|
selenium
|
|
|
|
tabulate
|
|
|
|
]);
|
|
|
|
|
2022-07-18 16:21:45 +00:00
|
|
|
preFixup = ''
|
|
|
|
wrapQtApp "$out/bin/anime" --prefix PATH : ${lib.makeBinPath propagatedBuildInputs}
|
|
|
|
'';
|
|
|
|
|
2022-06-26 10:26:21 +00:00
|
|
|
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;
|
2023-07-15 17:15:38 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "anime";
|
2022-06-26 10:26:21 +00:00
|
|
|
};
|
|
|
|
}
|