diff --git a/pkgs/development/python-modules/biliass/default.nix b/pkgs/development/python-modules/biliass/default.nix new file mode 100644 index 000000000000..fe2cd731a1ce --- /dev/null +++ b/pkgs/development/python-modules/biliass/default.nix @@ -0,0 +1,28 @@ +{ lib +, buildPythonPackage +, fetchPypi +, pythonOlder +, protobuf +}: + +buildPythonPackage rec { + pname = "biliass"; + version = "1.3.4"; + disabled = pythonOlder "3.6"; + + src = fetchPypi { + inherit pname version; + sha256 = "sha256-kktK+6rLwYhkG7LiTBlgBbiIN8apweg4l8pJSTjKQU4="; + }; + + propagatedBuildInputs = [ protobuf ]; + + 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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index d9a20d8406cd..56890eb660f8 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2660,6 +2660,8 @@ with pkgs; bicon = callPackage ../applications/misc/bicon { }; + biliass = with python3.pkgs; toPythonApplication biliass; + bindfs = callPackage ../tools/filesystems/bindfs { }; binwalk = with python3Packages; toPythonApplication binwalk; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 0f10b43dfd67..edb98f6edf00 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1225,6 +1225,8 @@ in { bids-validator = callPackage ../development/python-modules/bids-validator { }; + biliass = callPackage ../development/python-modules/biliass { }; + billiard = callPackage ../development/python-modules/billiard { }; bimmer-connected = callPackage ../development/python-modules/bimmer-connected { };