depot/third_party/nixpkgs/pkgs/development/python-modules/pycaption/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

48 lines
899 B
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, beautifulsoup4
, lxml
, cssutils
, nltk
, pytest-lazy-fixture
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pycaption";
version = "2.1.1";
disabled = pythonOlder "3.6";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-B+uIh8WTPPeNVU3yP8FEGc8OinY0MpJb9dHLC+nhi4I=";
};
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 ];
};
}