depot/third_party/nixpkgs/pkgs/by-name/yu/yutto/package.nix
Default email 472aeafc57 Project import generated by Copybara.
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
2024-10-04 18:56:33 +02:00

58 lines
1.2 KiB
Nix

{
lib,
python3Packages,
fetchFromGitHub,
ffmpeg,
nix-update-script,
}:
python3Packages.buildPythonApplication rec {
pname = "yutto";
version = "2.0.0-beta.43";
pyproject = true;
disabled = python3Packages.pythonOlder "3.9";
pythonRelaxDeps = true;
src = fetchFromGitHub {
owner = "yutto-dev";
repo = "yutto";
rev = "refs/tags/v${version}";
hash = "sha256-ND3uE4vsFa7gPr1E2UfiebExsrj+ELN0+hqnxxOQu8Y=";
};
build-system = with python3Packages; [ hatchling ];
dependencies =
with python3Packages;
[
httpx
aiofiles
biliass
dict2xml
colorama
typing-extensions
]
++ (with httpx.optional-dependencies; http2 ++ socks);
preFixup = ''
makeWrapperArgs+=(--prefix PATH : ${lib.makeBinPath [ ffmpeg ]})
'';
pythonImportsCheck = [ "yutto" ];
passthru.updateScript = nix-update-script {
extraArgs = [
"--version"
"unstable"
];
};
meta = with lib; {
description = "Bilibili downloader";
homepage = "https://github.com/yutto-dev/yutto";
license = licenses.gpl3Only;
maintainers = with maintainers; [ linsui ];
mainProgram = "yutto";
};
}