2022-05-26 04:06:05 +02:00
|
|
|
{ lib
|
2022-11-01 13:43:01 +01:00
|
|
|
, python3
|
2022-05-26 04:06:05 +02:00
|
|
|
, ffmpeg
|
|
|
|
, makeWrapper
|
2022-11-01 13:43:01 +01:00
|
|
|
, nix-update-script
|
2022-05-26 04:06:05 +02:00
|
|
|
}:
|
|
|
|
|
2022-11-01 13:43:01 +01:00
|
|
|
with python3.pkgs;
|
|
|
|
|
2022-05-26 04:06:05 +02:00
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "yutto";
|
2023-03-30 11:49:31 +02:00
|
|
|
version = "2.0.0b21";
|
2022-05-26 04:06:05 +02:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-30 11:49:31 +02:00
|
|
|
hash = "sha256-x1ncWaNZ0MQ4hYCGnfwR4pU0Hp1IgiruxU8HMFL9dnk=";
|
2022-05-26 04:06:05 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
aiofiles
|
|
|
|
biliass
|
|
|
|
dicttoxml
|
|
|
|
colorama
|
|
|
|
];
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
makeWrapperArgs+=(--prefix PATH : ${lib.makeBinPath [ ffmpeg ]})
|
|
|
|
'';
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "yutto" ];
|
|
|
|
|
2022-12-25 23:11:14 +01:00
|
|
|
passthru.updateScript = nix-update-script { };
|
2022-11-01 13:43:01 +01:00
|
|
|
|
2022-05-26 04:06:05 +02:00
|
|
|
meta = with lib; {
|
|
|
|
description = "A Bilibili downloader";
|
|
|
|
homepage = "https://github.com/yutto-dev/yutto";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ linsui ];
|
|
|
|
};
|
|
|
|
}
|