1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pythonOlder
5, poetry-core
6, protobuf
7, pytestCheckHook
8}:
9
10buildPythonPackage rec {
11 pname = "biliass";
12 version = "1.3.7";
13 format = "pyproject";
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchFromGitHub {
18 owner = "yutto-dev";
19 repo = "biliass";
20 rev = "refs/tags/v${version}";
21 hash = "sha256-Opb4rlGe+LDJZs3F7e/NZYfuMtHEWUZeMm8VZQfEzKI=";
22 };
23
24 nativeBuildInputs = [
25 poetry-core
26 ];
27
28 propagatedBuildInputs = [
29 protobuf
30 ];
31
32 doCheck = false; # test artifacts missing
33
34 nativeCheckInputs = [
35 pytestCheckHook
36 ];
37
38 pythonImportsCheck = [
39 "biliass"
40 ];
41
42 meta = with lib; {
43 homepage = "https://github.com/yutto-dev/biliass";
44 description = "Convert Bilibili XML/protobuf danmaku to ASS subtitle";
45 license = licenses.gpl3Only;
46 maintainers = with maintainers; [ linsui ];
47 };
48}