nixpkgs/pkgs/by-name/ff/ffsubsync/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

59 lines
1.2 KiB
Nix
Raw Normal View History

2024-08-08 07:40:38 +00:00
{
lib,
fetchFromGitHub,
fetchpatch,
2024-08-08 07:40:38 +00:00
python3,
2023-09-01 06:17:11 +00:00
}:
2024-02-29 14:00:55 +00:00
python3.pkgs.buildPythonApplication rec {
2023-09-01 06:17:11 +00:00
pname = "ffsubsync";
version = "0.4.25";
2024-02-29 14:00:55 +00:00
pyproject = true;
2023-09-01 06:17:11 +00:00
src = fetchFromGitHub {
owner = "smacke";
repo = "ffsubsync";
2024-02-29 14:00:55 +00:00
rev = "refs/tags/${version}";
2023-09-01 06:17:11 +00:00
hash = "sha256-ZdKZeKfAUe/FXLOur9Btb5RgXewmy3EHunQphqlxpIc=";
};
patches = [
# updates for python 3.12 (not currently included in a release)
(fetchpatch {
url = "https://github.com/smacke/ffsubsync/commit/de75bdbfe846b3376f8c0bcfe2e5e5db82d7ff20.patch";
hash = "sha256-JN7F9H9G8HK2aLOlm/Ec+GsWnU+65f1P658nq8FbAjo=";
})
];
2024-08-08 07:40:38 +00:00
nativeBuildInputs = with python3.pkgs; [ setuptools ];
2024-02-29 14:00:55 +00:00
propagatedBuildInputs = with python3.pkgs; [
2023-09-01 06:17:11 +00:00
auditok
charset-normalizer
faust-cchardet
ffmpeg-python
future
numpy
pysubs2
chardet
rich
six
srt
tqdm
typing-extensions
webrtcvad
];
2024-08-08 07:40:38 +00:00
nativeCheckInputs = with python3.pkgs; [ pytestCheckHook ];
2023-09-01 06:17:11 +00:00
2024-08-08 07:40:38 +00:00
pythonImportsCheck = [ "ffsubsync" ];
2023-09-01 06:17:11 +00:00
meta = with lib; {
homepage = "https://github.com/smacke/ffsubsync";
description = "Automagically synchronize subtitles with video";
license = licenses.mit;
maintainers = [ ];
2023-09-01 06:17:11 +00:00
mainProgram = "ffsubsync";
};
}