2023-01-24 05:20:00 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, poetry-core
|
|
|
|
, pythonRelaxDepsHook
|
|
|
|
, click
|
|
|
|
, colorama
|
|
|
|
, flask
|
|
|
|
, requests
|
|
|
|
, yt-dlp
|
|
|
|
, progress
|
|
|
|
}:
|
2023-01-17 20:25:35 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "yark";
|
2023-02-27 02:15:00 +01:00
|
|
|
version = "1.2.7";
|
2023-01-24 05:20:00 +01:00
|
|
|
|
|
|
|
format = "pyproject";
|
2023-01-17 20:25:35 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-03 01:48:06 +01:00
|
|
|
hash = "sha256-8O4EpHb1fP/O/t6hS1K1ylSXNKBuiipo7wvEnUJODSw=";
|
2023-01-17 20:25:35 +01:00
|
|
|
};
|
|
|
|
|
2023-01-24 05:20:00 +01:00
|
|
|
pythonRelaxDeps = [
|
|
|
|
"requests"
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
pythonRelaxDepsHook
|
|
|
|
];
|
|
|
|
|
2023-01-17 20:25:35 +01:00
|
|
|
propagatedBuildInputs = [
|
2023-01-24 05:20:00 +01:00
|
|
|
click
|
|
|
|
colorama
|
|
|
|
flask
|
|
|
|
progress
|
|
|
|
requests
|
|
|
|
yt-dlp
|
2023-01-17 20:25:35 +01:00
|
|
|
];
|
|
|
|
|
2023-01-20 04:16:11 +01:00
|
|
|
# There aren't any unit tests. If test discovery runs, it will crash, halting the build.
|
|
|
|
# When upstream adds unit tests, please configure them here. Thanks! ~ C.
|
2023-01-17 20:25:35 +01:00
|
|
|
doCheck = false;
|
|
|
|
|
2023-01-24 05:20:00 +01:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"yark"
|
|
|
|
];
|
|
|
|
|
2023-01-17 20:25:35 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = "YouTube archiving made simple";
|
|
|
|
homepage = "https://github.com/Owez/yark";
|
|
|
|
license = licenses.mit;
|
2023-01-24 05:20:00 +01:00
|
|
|
maintainers = [ ];
|
2023-01-17 20:25:35 +01:00
|
|
|
};
|
|
|
|
}
|