9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
48 lines
858 B
Nix
48 lines
858 B
Nix
{ lib
|
|
, python3
|
|
, fetchPypi
|
|
, ffmpeg
|
|
, nix-update-script
|
|
}:
|
|
|
|
with python3.pkgs;
|
|
|
|
buildPythonApplication rec {
|
|
pname = "yutto";
|
|
version = "2.0.0b24";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-ZnRDGgJu78KoSHvznYhBNEDJihUm9rUdlb5tXmcpuTc=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
aiofiles
|
|
biliass
|
|
dicttoxml
|
|
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 ];
|
|
};
|
|
}
|