1{ lib
2, buildPythonPackage
3, fetchPypi
4, pythonOlder
5, protobuf
6}:
7
8buildPythonPackage rec {
9 pname = "biliass";
10 version = "1.3.5";
11 disabled = pythonOlder "3.6";
12
13 src = fetchPypi {
14 inherit pname version;
15 sha256 = "sha256-kgoQUX2l5YENEozcnfluwvcAO1ZSxlfHPVIa9ABW6IU=";
16 };
17
18 propagatedBuildInputs = [ protobuf ];
19
20 pythonImportsCheck = [ "biliass" ];
21
22 meta = with lib; {
23 homepage = "https://github.com/yutto-dev/biliass";
24 description = "Convert Bilibili XML/protobuf danmaku to ASS subtitle";
25 license = licenses.gpl3Only;
26 maintainers = with maintainers; [ linsui ];
27 };
28}