1{
2 lib,
3 buildPythonPackage,
4 click,
5 colorama,
6 fetchPypi,
7 flask,
8 poetry-core,
9 progress,
10 pythonOlder,
11 requests,
12 yt-dlp,
13}:
14
15buildPythonPackage rec {
16 pname = "yark";
17 version = "1.2.12";
18 pyproject = true;
19
20 disabled = pythonOlder "3.9";
21
22 src = fetchPypi {
23 inherit pname version;
24 hash = "sha256-K66LC/HhajAMCWU7PPfxkoaK84kLlAccYAH5FXoc+yE=";
25 };
26
27 pythonRelaxDeps = [
28 "flask"
29 "requests"
30 "yt-dlp"
31 ];
32
33 nativeBuildInputs = [
34 poetry-core
35 ];
36
37 propagatedBuildInputs = [
38 click
39 colorama
40 flask
41 progress
42 requests
43 yt-dlp
44 ];
45
46 # Module has no tests
47 doCheck = false;
48
49 pythonImportsCheck = [ "yark" ];
50
51 meta = with lib; {
52 description = "Module for YouTube archiving";
53 mainProgram = "yark";
54 homepage = "https://github.com/Owez/yark";
55 changelog = "https://github.com/Owez/yark/releases/tag/v${version}";
56 license = licenses.mit;
57 maintainers = [ ];
58 };
59}