472aeafc57
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
54 lines
999 B
Nix
54 lines
999 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
pythonOlder,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
beautifulsoup4,
|
|
lxml,
|
|
cssutils,
|
|
nltk,
|
|
pytest-lazy-fixture,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pycaption";
|
|
version = "2.2.15";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pbs";
|
|
repo = "pycaption";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-07Llsp2Cvvo9WueeTBJnAos3uynhYL0gT5U21EI9dHY=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
beautifulsoup4
|
|
lxml
|
|
cssutils
|
|
];
|
|
|
|
optional-dependencies = {
|
|
transcript = [ nltk ];
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
pytest-lazy-fixture
|
|
pytestCheckHook
|
|
];
|
|
|
|
meta = with lib; {
|
|
changelog = "https://github.com/pbs/pycaption/blob/${version}/docs/changelog.rst";
|
|
description = "Closed caption converter";
|
|
homepage = "https://github.com/pbs/pycaption";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
};
|
|
}
|