blob: 75e799ce44b97abf343dbaa911a544e61a376631 (
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
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
poetry-core,
protobuf,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "biliass";
version = "1.3.11";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "yutto-dev";
repo = "biliass";
rev = "refs/tags/v${version}";
hash = "sha256-hBorYAqtxTZ4LElxxJOGxC2g7sBRhRKVv6HOVHZn9FA=";
};
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [ protobuf ];
doCheck = false; # test artifacts missing
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "biliass" ];
meta = with lib; {
homepage = "https://github.com/yutto-dev/biliass";
description = "Convert Bilibili XML/protobuf danmaku to ASS subtitle";
mainProgram = "biliass";
license = licenses.gpl3Only;
maintainers = with maintainers; [ linsui ];
};
}
|