blob: eb5b983e8f96da4655bd535b517d569e0b89057d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
{
lib,
python3Packages,
fetchFromGitHub,
ffmpeg,
nix-update-script,
}:
python3Packages.buildPythonApplication rec {
pname = "yutto";
version = "2.0.0-beta.40";
format = "pyproject";
disabled = python3Packages.pythonOlder "3.9";
src = fetchFromGitHub {
owner = "yutto-dev";
repo = "yutto";
rev = "v${version}";
hash = "sha256-gopCQ8tEhwtDFs/w+jafD3ZW/4MIrYxPcMh8SbOCwww=";
};
nativeBuildInputs = with python3Packages; [ poetry-core ];
propagatedBuildInputs =
with python3Packages;
[
httpx
aiofiles
biliass
dict2xml
colorama
typing-extensions
]
++ (with httpx.optional-dependencies; http2 ++ socks);
preFixup = ''
makeWrapperArgs+=(--prefix PATH : ${lib.makeBinPath [ ffmpeg ]})
'';
pythonImportsCheck = [ "yutto" ];
passthru.updateScript = nix-update-script {
extraArgs = [
"--version"
"unstable"
];
};
meta = with lib; {
description = "Bilibili downloader";
homepage = "https://github.com/yutto-dev/yutto";
license = licenses.gpl3Only;
maintainers = with maintainers; [ linsui ];
mainProgram = "yutto";
};
}
|