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

39 lines
730 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 = "A Python library for editing subtitle files";
mainProgram = "pysubs2";
license = licenses.mit;
maintainers = with maintainers; [ Benjamin-L ];
};
}