2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
click,
|
|
|
|
colorama,
|
|
|
|
fetchPypi,
|
|
|
|
flask,
|
|
|
|
poetry-core,
|
|
|
|
progress,
|
|
|
|
pythonOlder,
|
|
|
|
pythonRelaxDepsHook,
|
|
|
|
requests,
|
|
|
|
yt-dlp,
|
2023-02-02 18:25:31 +00:00
|
|
|
}:
|
2023-01-20 10:41:00 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "yark";
|
2024-01-25 14:12:00 +00:00
|
|
|
version = "1.2.10";
|
|
|
|
pyproject = true;
|
2023-02-02 18:25:31 +00:00
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
disabled = pythonOlder "3.9";
|
2023-01-20 10:41:00 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-01-25 14:12:00 +00:00
|
|
|
hash = "sha256-Y1fWHpvrqGuBPyJ2dO2y0W2zhEgcTJABtkOAoZ7uyZU=";
|
2023-01-20 10:41:00 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
pythonRelaxDeps = [
|
2024-02-29 20:09:43 +00:00
|
|
|
"flask"
|
2023-02-02 18:25:31 +00:00
|
|
|
"requests"
|
2024-02-29 20:09:43 +00:00
|
|
|
"yt-dlp"
|
2023-02-02 18:25:31 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
pythonRelaxDepsHook
|
|
|
|
];
|
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
propagatedBuildInputs = [
|
2023-02-02 18:25:31 +00:00
|
|
|
click
|
|
|
|
colorama
|
|
|
|
flask
|
|
|
|
progress
|
|
|
|
requests
|
|
|
|
yt-dlp
|
2023-01-20 10:41:00 +00:00
|
|
|
];
|
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
# Module has no tests
|
2023-01-20 10:41:00 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "yark" ];
|
2023-02-02 18:25:31 +00:00
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
meta = with lib; {
|
2024-01-25 14:12:00 +00:00
|
|
|
description = "Module for YouTube archiving";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "yark";
|
2023-01-20 10:41:00 +00:00
|
|
|
homepage = "https://github.com/Owez/yark";
|
2024-01-25 14:12:00 +00:00
|
|
|
changelog = "https://github.com/Owez/yark/releases/tag/v${version}";
|
2023-01-20 10:41:00 +00:00
|
|
|
license = licenses.mit;
|
2024-01-25 14:12:00 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2023-01-20 10:41:00 +00:00
|
|
|
};
|
|
|
|
}
|