nixpkgs/pkgs/by-name/yu/yutto/package.nix

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

53 lines
1.1 KiB
Nix
Raw Normal View History

2022-05-26 02:06:05 +00:00
{ lib
, python3Packages
, fetchFromGitHub
2022-05-26 02:06:05 +00:00
, ffmpeg
, nix-update-script
2022-05-26 02:06:05 +00:00
}:
python3Packages.buildPythonApplication rec {
2022-05-26 02:06:05 +00:00
pname = "yutto";
version = "2.0.0-beta.37";
2022-05-26 02:06:05 +00:00
format = "pyproject";
disabled = python3Packages.pythonOlder "3.9";
2022-05-26 02:06:05 +00:00
src = fetchFromGitHub {
owner = "yutto-dev";
repo = "yutto";
rev = "v${version}";
hash = "sha256-daRuFYfR3FjvhVsQM1FXI19iOH+bukh6WxfH5O+CFk4=";
2022-05-26 02:06:05 +00:00
};
nativeBuildInputs = with python3Packages; [
2022-05-26 02:06:05 +00:00
poetry-core
];
propagatedBuildInputs = with python3Packages; [
2024-02-16 12:48:49 +00:00
httpx
2022-05-26 02:06:05 +00:00
aiofiles
biliass
2023-07-31 13:50:25 +00:00
dict2xml
2022-05-26 02:06:05 +00:00
colorama
2024-02-16 12:48:49 +00:00
typing-extensions
] ++ (with httpx.optional-dependencies; http2 ++ socks);
2022-05-26 02:06:05 +00:00
preFixup = ''
makeWrapperArgs+=(--prefix PATH : ${lib.makeBinPath [ ffmpeg ]})
'';
pythonImportsCheck = [ "yutto" ];
passthru.updateScript = nix-update-script {
extraArgs = [ "--version" "unstable" ];
};
2022-05-26 02:06:05 +00:00
meta = with lib; {
description = "A Bilibili downloader";
homepage = "https://github.com/yutto-dev/yutto";
license = licenses.gpl3Only;
maintainers = with maintainers; [ linsui ];
2023-11-27 01:17:53 +00:00
mainProgram = "yutto";
2022-05-26 02:06:05 +00:00
};
}