depot/third_party/nixpkgs/pkgs/development/python-modules/pycaption/default.nix
Default email 472aeafc57 Project import generated by Copybara.
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
2024-10-04 18:56:33 +02:00

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 ];
};
}