diff options
author | WeebSorceress <hello@weebsorceress.anonaddy.me> | 2022-06-05 00:02:14 -0300 |
---|---|---|
committer | WeebSorceress <hello@weebsorceress.anonaddy.me> | 2022-06-16 15:38:37 -0300 |
commit | 41b5af8b6595e597f3bd51e85089f9eb44345eb6 (patch) | |
tree | b2b1ce056be9e8a91d1b9653aff4dc32bf779242 /pkgs/applications/video/anime-downloader | |
parent | 9a995f5c6a0b7e782017b725eb8a34ff0d7de527 (diff) | |
download | nixlib-41b5af8b6595e597f3bd51e85089f9eb44345eb6.tar nixlib-41b5af8b6595e597f3bd51e85089f9eb44345eb6.tar.gz nixlib-41b5af8b6595e597f3bd51e85089f9eb44345eb6.tar.bz2 nixlib-41b5af8b6595e597f3bd51e85089f9eb44345eb6.tar.lz nixlib-41b5af8b6595e597f3bd51e85089f9eb44345eb6.tar.xz nixlib-41b5af8b6595e597f3bd51e85089f9eb44345eb6.tar.zst nixlib-41b5af8b6595e597f3bd51e85089f9eb44345eb6.zip |
anime-downloader: init at 5.0.14
Diffstat (limited to 'pkgs/applications/video/anime-downloader')
-rw-r--r-- | pkgs/applications/video/anime-downloader/default.nix | 51 | ||||
-rwxr-xr-x | pkgs/applications/video/anime-downloader/update.sh | 8 |
2 files changed, 59 insertions, 0 deletions
diff --git a/pkgs/applications/video/anime-downloader/default.nix b/pkgs/applications/video/anime-downloader/default.nix new file mode 100644 index 000000000000..cf8edb33dd87 --- /dev/null +++ b/pkgs/applications/video/anime-downloader/default.nix @@ -0,0 +1,51 @@ +{ lib, python3, aria2, mpv, nodejs, 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="; + }; + + buildInputs = with python3.pkgs; [ + jsbeautifier + pycryptodome + requests + ]; + + propagatedBuildInputs = [ + aria2 + mpv + nodejs + ] ++ (with python3.pkgs; [ + beautifulsoup4 + cfscrape + click + coloredlogs + fuzzywuzzy + pySmartDL + pyqt5 + requests-cache + selenium + tabulate + ]); + + 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 ]; + }; +} diff --git a/pkgs/applications/video/anime-downloader/update.sh b/pkgs/applications/video/anime-downloader/update.sh new file mode 100755 index 000000000000..292299298ad9 --- /dev/null +++ b/pkgs/applications/video/anime-downloader/update.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env nix-shell +#!nix-shell -i bash -p curl jq common-updater-scripts + +set -eu -o pipefail + +version="$(curl --silent "https://api.github.com/repos/anime-dl/anime-downloader/releases" | jq '.[0].tag_name' --raw-output)" + +update-source-version anime-downloader "$version" |