nixpkgs/pkgs/tools/misc/yutto/default.nix
2023-01-28 05:14:09 +00:00

48 lines
860 B
Nix

{ lib
, python3
, ffmpeg
, makeWrapper
, nix-update-script
}:
with python3.pkgs;
buildPythonApplication rec {
pname = "yutto";
version = "2.0.0b18";
format = "pyproject";
disabled = pythonOlder "3.9";
src = fetchPypi {
inherit pname version;
hash = "sha256-BuubfySQfw4ljWTc1yyW4Zqle0VTimFLQ6enZA3joeQ=";
};
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 ];
};
}