depot/third_party/nixpkgs/pkgs/development/python-modules/pycaption/default.nix
Default email 2c76a4cb41 Project import generated by Copybara.
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
2023-11-16 04:20:00 +00:00

50 lines
919 B
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, beautifulsoup4
, lxml
, cssutils
, nltk
, pytest-lazy-fixture
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pycaption";
version = "2.2.0";
disabled = pythonOlder "3.6";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-W/sD/Nh2k1z7YvFVnQB9dGa1bXoCTb4QrPk/1mi4Hdk=";
};
propagatedBuildInputs = [
beautifulsoup4
lxml
cssutils
];
passthru.optional-dependencies = {
transcript = [ nltk ];
};
nativeCheckInputs = [
pytest-lazy-fixture
pytestCheckHook
];
doCheck = false;
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 ];
};
}