depot/third_party/nixpkgs/pkgs/development/python-modules/biliass/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

49 lines
912 B
Nix

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