2023-02-02 18:25:31 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, poetry-core
|
|
|
|
, pythonRelaxDepsHook
|
|
|
|
, click
|
|
|
|
, colorama
|
|
|
|
, flask
|
|
|
|
, requests
|
|
|
|
, yt-dlp
|
|
|
|
, progress
|
|
|
|
}:
|
2023-01-20 10:41:00 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "yark";
|
2023-03-15 16:39:30 +00:00
|
|
|
version = "1.2.7";
|
2023-02-02 18:25:31 +00:00
|
|
|
|
|
|
|
format = "pyproject";
|
2023-01-20 10:41:00 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-8O4EpHb1fP/O/t6hS1K1ylSXNKBuiipo7wvEnUJODSw=";
|
2023-01-20 10:41:00 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
pythonRelaxDeps = [
|
|
|
|
"requests"
|
|
|
|
];
|
|
|
|
|
|
|
|
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
|
|
|
];
|
|
|
|
|
|
|
|
# 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.
|
|
|
|
doCheck = false;
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"yark"
|
|
|
|
];
|
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "YouTube archiving made simple";
|
|
|
|
homepage = "https://github.com/Owez/yark";
|
|
|
|
license = licenses.mit;
|
2023-02-02 18:25:31 +00:00
|
|
|
maintainers = [ ];
|
2023-01-20 10:41:00 +00:00
|
|
|
};
|
|
|
|
}
|