nixpkgs/pkgs/tools/misc/yutto/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

49 lines
858 B
Nix
Raw Normal View History

2022-05-26 02:06:05 +00:00
{ lib
, python3
2023-05-25 18:37:59 +00:00
, fetchPypi
2022-05-26 02:06:05 +00:00
, ffmpeg
, nix-update-script
2022-05-26 02:06:05 +00:00
}:
with python3.pkgs;
2022-05-26 02:06:05 +00:00
buildPythonApplication rec {
pname = "yutto";
2023-04-29 02:28:36 +00:00
version = "2.0.0b24";
2022-05-26 02:06:05 +00:00
format = "pyproject";
disabled = pythonOlder "3.9";
src = fetchPypi {
inherit pname version;
2023-04-29 02:28:36 +00:00
hash = "sha256-ZnRDGgJu78KoSHvznYhBNEDJihUm9rUdlb5tXmcpuTc=";
2022-05-26 02:06:05 +00:00
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
aiohttp
aiofiles
biliass
dicttoxml
colorama
];
preFixup = ''
makeWrapperArgs+=(--prefix PATH : ${lib.makeBinPath [ ffmpeg ]})
'';
pythonImportsCheck = [ "yutto" ];
passthru.updateScript = nix-update-script { };
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 ];
};
}