2022-06-16 17:23:12 +00:00
|
|
|
{ lib
|
2022-11-02 22:02:43 +00:00
|
|
|
, python3
|
2023-07-15 17:15:38 +00:00
|
|
|
, fetchPypi
|
2022-06-16 17:23:12 +00:00
|
|
|
, ffmpeg
|
2022-11-02 22:02:43 +00:00
|
|
|
, nix-update-script
|
2022-06-16 17:23:12 +00:00
|
|
|
}:
|
|
|
|
|
2022-11-02 22:02:43 +00:00
|
|
|
with python3.pkgs;
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "yutto";
|
2023-04-29 16:46:19 +00:00
|
|
|
version = "2.0.0b24";
|
2022-06-16 17:23:12 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-04-29 16:46:19 +00:00
|
|
|
hash = "sha256-ZnRDGgJu78KoSHvznYhBNEDJihUm9rUdlb5tXmcpuTc=";
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
aiofiles
|
|
|
|
biliass
|
|
|
|
dicttoxml
|
|
|
|
colorama
|
|
|
|
];
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
makeWrapperArgs+=(--prefix PATH : ${lib.makeBinPath [ ffmpeg ]})
|
|
|
|
'';
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "yutto" ];
|
|
|
|
|
2022-12-28 21:21:41 +00:00
|
|
|
passthru.updateScript = nix-update-script { };
|
2022-11-02 22:02:43 +00:00
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "A Bilibili downloader";
|
|
|
|
homepage = "https://github.com/yutto-dev/yutto";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ linsui ];
|
|
|
|
};
|
|
|
|
}
|