depot/third_party/nixpkgs/pkgs/development/python-modules/pysubs2/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

34 lines
716 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "pysubs2";
version = "1.6.1";
format = "pyproject";
src = fetchFromGitHub {
owner = "tkarabela";
repo = pname;
rev = version;
hash = "sha256-0bW9aB6ERRQK3psqeU0Siyi/8drEGisAp8UtTfOKlp0=";
};
nativeBuildInputs = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "pysubs2" ];
meta = with lib; {
homepage = "https://github.com/tkarabela/pysubs2";
description = "Python library for editing subtitle files";
mainProgram = "pysubs2";
license = licenses.mit;
maintainers = with maintainers; [ Benjamin-L ];
};
}