2022-06-16 17:23:12 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonApplication
|
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
|
|
|
, poetry-core
|
|
|
|
, aiohttp
|
|
|
|
, aiofiles
|
|
|
|
, biliass
|
|
|
|
, dicttoxml
|
|
|
|
, colorama
|
|
|
|
, ffmpeg
|
|
|
|
, makeWrapper
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "yutto";
|
2022-10-06 18:32:54 +00:00
|
|
|
version = "2.0.0b15";
|
2022-06-16 17:23:12 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-10-06 18:32:54 +00:00
|
|
|
hash = "sha256-TOFApMwY2WRYg2H2N0PIjylYFKnTHdszdU+AFgLYYwc=";
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
aiofiles
|
|
|
|
biliass
|
|
|
|
dicttoxml
|
|
|
|
colorama
|
|
|
|
];
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
makeWrapperArgs+=(--prefix PATH : ${lib.makeBinPath [ ffmpeg ]})
|
|
|
|
'';
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "yutto" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A Bilibili downloader";
|
|
|
|
homepage = "https://github.com/yutto-dev/yutto";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ linsui ];
|
|
|
|
};
|
|
|
|
}
|