Unverified Commit 723a2a9e authored by Peder Bergebakken Sundt's avatar Peder Bergebakken Sundt Committed by GitHub
Browse files

ffsubsync: 0.4.25 -> 0.4.29 (#400689)

parents d5508023 bd5aecad
Loading
Loading
Loading
Loading
+7 −16
Original line number Diff line number Diff line
{
  lib,
  fetchFromGitHub,
  fetchpatch,
  python3,
  fetchFromGitHub,
}:

python3.pkgs.buildPythonApplication rec {
  pname = "ffsubsync";
  version = "0.4.25";
  version = "0.4.29";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "smacke";
    repo = "ffsubsync";
    tag = version;
    hash = "sha256-ZdKZeKfAUe/FXLOur9Btb5RgXewmy3EHunQphqlxpIc=";
    hash = "sha256-XMFobdr/nzr5pXjz/jWa/Pp14ITdbxAce0Iz+5qcBO4=";
  };

  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=";
    })
  ];

  nativeBuildInputs = with python3.pkgs; [ setuptools ];
  build-system = with python3.pkgs; [ setuptools ];

  propagatedBuildInputs = with python3.pkgs; [
  dependencies = with python3.pkgs; [
    auditok
    charset-normalizer
    faust-cchardet
@@ -50,10 +41,10 @@ python3.pkgs.buildPythonApplication rec {

  pythonImportsCheck = [ "ffsubsync" ];

  meta = with lib; {
  meta = {
    homepage = "https://github.com/smacke/ffsubsync";
    description = "Automagically synchronize subtitles with video";
    license = licenses.mit;
    license = lib.licenses.mit;
    maintainers = [ ];
    mainProgram = "ffsubsync";
  };