d5f4a57cbf
GitOrigin-RevId: ce5e4a6ef2e59d89a971bc434ca8ca222b9c7f5e
48 lines
857 B
Nix
48 lines
857 B
Nix
{ lib
|
|
, python3
|
|
, fetchPypi
|
|
, ffmpeg
|
|
, nix-update-script
|
|
}:
|
|
|
|
with python3.pkgs;
|
|
|
|
buildPythonApplication rec {
|
|
pname = "yutto";
|
|
version = "2.0.0b28";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-jN9KDQjEaTf7BUDtGd07W3TtijRKzD+StMReLmX4QI0=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
aiofiles
|
|
biliass
|
|
dict2xml
|
|
colorama
|
|
];
|
|
|
|
preFixup = ''
|
|
makeWrapperArgs+=(--prefix PATH : ${lib.makeBinPath [ ffmpeg ]})
|
|
'';
|
|
|
|
pythonImportsCheck = [ "yutto" ];
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = with lib; {
|
|
description = "A Bilibili downloader";
|
|
homepage = "https://github.com/yutto-dev/yutto";
|
|
license = licenses.gpl3Only;
|
|
maintainers = with maintainers; [ linsui ];
|
|
};
|
|
}
|