0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-14 14:10:33 +03:00
nixpkgs/pkgs/development/python-modules/pycaption/default.nix
2025-01-18 06:53:42 +00:00

54 lines
984 B
Nix

{
lib,
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
setuptools,
beautifulsoup4,
lxml,
cssutils,
nltk,
pytest-lazy-fixture,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "pycaption";
version = "2.2.16";
disabled = pythonOlder "3.8";
pyproject = true;
src = fetchFromGitHub {
owner = "pbs";
repo = "pycaption";
tag = version;
hash = "sha256-w617mOxvL1alj7jauH4TVsYO0wxMHIFjevdhb4+542s=";
};
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 ];
};
}