depot/third_party/nixpkgs/pkgs/development/python-modules/pysubs2/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

38 lines
701 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";
license = licenses.mit;
maintainers = with maintainers; [ Benjamin-L ];
};
}