fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
54 lines
1,022 B
Nix
54 lines
1,022 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
pythonOlder,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
beautifulsoup4,
|
|
lxml,
|
|
cssutils,
|
|
nltk,
|
|
pytest-lazy-fixture,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pycaption";
|
|
version = "2.2.10";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pbs";
|
|
repo = "pycaption";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-U4ooAKs0vy6jQdUake2R0RKs9lz+DNvS1f3/c2Mck5k=";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
propagatedBuildInputs = [
|
|
beautifulsoup4
|
|
lxml
|
|
cssutils
|
|
];
|
|
|
|
passthru.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 ];
|
|
};
|
|
}
|