Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / pycaption / default.nix
blob900f93bbea8791b804277a33ee02d45a530119d6
1 { lib
2 , buildPythonPackage
3 , pythonOlder
4 , fetchFromGitHub
5 , setuptools
6 , beautifulsoup4
7 , lxml
8 , cssutils
9 , nltk
10 , pytest-lazy-fixture
11 , pytestCheckHook
14 buildPythonPackage rec {
15   pname = "pycaption";
16   version = "2.2.6";
18   disabled = pythonOlder "3.8";
20   pyproject = true;
22   src = fetchFromGitHub {
23     owner = "pbs";
24     repo = "pycaption";
25     rev = "refs/tags/${version}";
26     hash = "sha256-XN83L6WsRyl9G0ia4uz3SCVcwwUNUyfNMB64RfZh+PA=";
27   };
29   nativeBuildInputs = [
30     setuptools
31   ];
33   propagatedBuildInputs = [
34     beautifulsoup4
35     lxml
36     cssutils
37   ];
39   passthru.optional-dependencies = {
40     transcript = [ nltk ];
41   };
43   nativeCheckInputs = [
44     pytest-lazy-fixture
45     pytestCheckHook
46   ];
48   meta = with lib; {
49     changelog = "https://github.com/pbs/pycaption/blob/${version}/docs/changelog.rst";
50     description = "Closed caption converter";
51     homepage = "https://github.com/pbs/pycaption";
52     license = licenses.asl20;
53     maintainers = with maintainers; [ dotlambda ];
54   };