Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / pycaption / default.nix
blobdb90dcce9492ef420121e31a288891e430ed2f92
1 { lib
2 , buildPythonPackage
3 , pythonOlder
4 , fetchPypi
5 , beautifulsoup4
6 , lxml
7 , cssutils
8 , nltk
9 , pytest-lazy-fixture
10 , pytestCheckHook
13 buildPythonPackage rec {
14   pname = "pycaption";
15   version = "2.2.0";
17   disabled = pythonOlder "3.6";
19   format = "setuptools";
21   src = fetchPypi {
22     inherit pname version;
23     hash = "sha256-W/sD/Nh2k1z7YvFVnQB9dGa1bXoCTb4QrPk/1mi4Hdk=";
24   };
26   propagatedBuildInputs = [
27     beautifulsoup4
28     lxml
29     cssutils
30   ];
32   passthru.optional-dependencies = {
33     transcript = [ nltk ];
34   };
36   nativeCheckInputs = [
37     pytest-lazy-fixture
38     pytestCheckHook
39   ];
41   doCheck = false;
43   meta = with lib; {
44     changelog = "https://github.com/pbs/pycaption/blob/${version}/docs/changelog.rst";
45     description = "Closed caption converter";
46     homepage = "https://github.com/pbs/pycaption";
47     license = licenses.asl20;
48     maintainers = with maintainers; [ dotlambda ];
49   };