summary refs log tree commit diff
path: root/pkgs/development/python-modules/biliass/default.nix
blob: a6ce06c8a97113347c98f0b19f80e163339a0618 (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
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, poetry-core
, protobuf
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "biliass";
  version = "1.3.7";
  format = "pyproject";

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "yutto-dev";
    repo = "biliass";
    rev = "refs/tags/v${version}";
    hash = "sha256-Opb4rlGe+LDJZs3F7e/NZYfuMtHEWUZeMm8VZQfEzKI=";
  };

  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";
    license = licenses.gpl3Only;
    maintainers = with maintainers; [ linsui ];
  };
}