chromium,chromedriver: 129.0.6668.91 -> 129.0.6668.100
[NixPkgs.git] / pkgs / by-name / ff / ffsubsync / package.nix
blobf247edf6e2aac070584738df1d688693689b8ff0
2   lib,
3   fetchFromGitHub,
4   fetchpatch,
5   python3,
6 }:
8 python3.pkgs.buildPythonApplication rec {
9   pname = "ffsubsync";
10   version = "0.4.25";
11   pyproject = true;
13   src = fetchFromGitHub {
14     owner = "smacke";
15     repo = "ffsubsync";
16     rev = "refs/tags/${version}";
17     hash = "sha256-ZdKZeKfAUe/FXLOur9Btb5RgXewmy3EHunQphqlxpIc=";
18   };
20   patches = [
21     # updates for python 3.12 (not currently included in a release)
22     (fetchpatch {
23       url = "https://github.com/smacke/ffsubsync/commit/de75bdbfe846b3376f8c0bcfe2e5e5db82d7ff20.patch";
24       hash = "sha256-JN7F9H9G8HK2aLOlm/Ec+GsWnU+65f1P658nq8FbAjo=";
25     })
26   ];
28   nativeBuildInputs = with python3.pkgs; [ setuptools ];
30   propagatedBuildInputs = with python3.pkgs; [
31     auditok
32     charset-normalizer
33     faust-cchardet
34     ffmpeg-python
35     future
36     numpy
37     pysubs2
38     chardet
39     rich
40     six
41     srt
42     tqdm
43     typing-extensions
44     webrtcvad
45   ];
47   nativeCheckInputs = with python3.pkgs; [ pytestCheckHook ];
49   pythonImportsCheck = [ "ffsubsync" ];
51   meta = with lib; {
52     homepage = "https://github.com/smacke/ffsubsync";
53     description = "Automagically synchronize subtitles with video";
54     license = licenses.mit;
55     maintainers = [ ];
56     mainProgram = "ffsubsync";
57   };