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