silx: 2.1.1 -> 2.1.2 (#361612)
[NixPkgs.git] / pkgs / by-name / ff / ffsubsync / package.nix
blob35885e0f725b34e0d2b066165476734b4c6e5e09
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     pkgs.ffmpeg
38     pysubs2
39     chardet
40     rich
41     setuptools
42     six
43     srt
44     tqdm
45     typing-extensions
46     webrtcvad
47   ];
49   nativeCheckInputs = with python3.pkgs; [ pytestCheckHook ];
51   pythonImportsCheck = [ "ffsubsync" ];
53   meta = with lib; {
54     homepage = "https://github.com/smacke/ffsubsync";
55     description = "Automagically synchronize subtitles with video";
56     license = licenses.mit;
57     maintainers = [ ];
58     mainProgram = "ffsubsync";
59   };