Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 python3, 4 fetchFromGitHub, 5 ffmpeg, 6}: 7 8python3.pkgs.buildPythonApplication rec { 9 pname = "ffsubsync"; 10 version = "0.4.29"; 11 pyproject = true; 12 13 src = fetchFromGitHub { 14 owner = "smacke"; 15 repo = "ffsubsync"; 16 tag = version; 17 hash = "sha256-XMFobdr/nzr5pXjz/jWa/Pp14ITdbxAce0Iz+5qcBO4="; 18 }; 19 20 build-system = with python3.pkgs; [ setuptools ]; 21 22 dependencies = with python3.pkgs; [ 23 auditok 24 charset-normalizer 25 faust-cchardet 26 ffmpeg-python 27 numpy 28 pysubs2 29 chardet 30 rich 31 setuptools 32 six 33 srt 34 tqdm 35 typing-extensions 36 webrtcvad 37 ]; 38 39 nativeCheckInputs = with python3.pkgs; [ pytestCheckHook ]; 40 41 pythonImportsCheck = [ "ffsubsync" ]; 42 43 makeWrapperArgs = [ 44 "--prefix" 45 "PATH" 46 ":" 47 "${ffmpeg}/bin" 48 ]; 49 50 meta = { 51 homepage = "https://github.com/smacke/ffsubsync"; 52 description = "Automagically synchronize subtitles with video"; 53 license = lib.licenses.mit; 54 maintainers = [ ]; 55 mainProgram = "ffsubsync"; 56 }; 57}