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.

60 lines
1.2 KiB
Nix
Raw Normal View History

2024-07-07 06:50:36 +00:00
{
lib,
python3Packages,
fetchFromGitHub,
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";
2024-10-23 17:48:19 +00:00
version = "2.0.0-rc.5";
2024-09-25 12:13:04 +00:00
pyproject = true;
2022-05-26 02:06:05 +00:00
disabled = python3Packages.pythonOlder "3.9";
2024-09-25 12:13:04 +00:00
pythonRelaxDeps = true;
2022-05-26 02:06:05 +00:00
src = fetchFromGitHub {
owner = "yutto-dev";
repo = "yutto";
2024-09-25 12:13:04 +00:00
rev = "refs/tags/v${version}";
2024-10-23 17:48:19 +00:00
hash = "sha256-QaApCkZtHjvGB6FOfic9wEH7rUlukwmxnrDaHkbvyJo=";
2022-05-26 02:06:05 +00:00
};
2024-09-25 12:13:04 +00:00
build-system = with python3Packages; [ hatchling ];
2022-05-26 02:06:05 +00:00
2024-09-25 12:13:04 +00:00
dependencies =
2024-07-07 06:50:36 +00:00
with python3Packages;
[
httpx
aiofiles
biliass
dict2xml
colorama
typing-extensions
2024-10-12 15:46:36 +00:00
pydantic
2024-07-07 06:50:36 +00:00
]
++ (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 {
2024-07-07 06:50:36 +00:00
extraArgs = [
"--version"
"unstable"
];
};
2022-05-26 02:06:05 +00:00
meta = with lib; {
description = "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
};
}