2022-05-26 02:06:05 +00:00
|
|
|
{ lib
|
2022-11-01 12:43:01 +00:00
|
|
|
, python3
|
2023-05-25 18:37:59 +00:00
|
|
|
, fetchPypi
|
2022-05-26 02:06:05 +00:00
|
|
|
, ffmpeg
|
2022-11-01 12:43:01 +00:00
|
|
|
, nix-update-script
|
2022-05-26 02:06:05 +00:00
|
|
|
}:
|
|
|
|
|
2022-11-01 12:43:01 +00:00
|
|
|
with python3.pkgs;
|
|
|
|
|
2022-05-26 02:06:05 +00:00
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "yutto";
|
2024-01-18 20:18:04 +00:00
|
|
|
version = "2.0.0b33";
|
2022-05-26 02:06:05 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-01-18 20:18:04 +00:00
|
|
|
hash = "sha256-TUyjppAHmWCZxifeQeOpFMPBksqLRSYdqgG7NEMVILY=";
|
2022-05-26 02:06:05 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
aiofiles
|
|
|
|
biliass
|
2023-07-31 13:50:25 +00:00
|
|
|
dict2xml
|
2022-05-26 02:06:05 +00:00
|
|
|
colorama
|
|
|
|
];
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
makeWrapperArgs+=(--prefix PATH : ${lib.makeBinPath [ ffmpeg ]})
|
|
|
|
'';
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "yutto" ];
|
|
|
|
|
2022-12-25 22:11:14 +00:00
|
|
|
passthru.updateScript = nix-update-script { };
|
2022-11-01 12:43:01 +00:00
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|