Unverified Commit 468cac1a authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

Merge pull request #325822 from linsui/friture

friture: 0.49 -> 0.49-unstable-2024-06-02
parents 3c1f45f3 74d3ca7f
Loading
Loading
Loading
Loading
+30 −12
Original line number Diff line number Diff line
{ lib, fetchFromGitHub, python3Packages, wrapQtAppsHook }:
{
  lib,
  fetchFromGitHub,
  python3Packages,
  qt5,
}:

python3Packages.buildPythonApplication rec {
  pname = "friture";
  version = "0.49";
  version = "0.49-unstable-2024-06-02";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "tlecomte";
    repo = pname;
    rev = "v${version}";
    sha256 = "sha256-xKgyBV/Qc+9PgXyxcT0xG1GXLC6KnjavJ/0SUE+9VSY=";
    rev = "405bffa585ece0cb535c32d0f4f6ace932b40103";
    hash = "sha256-4xvIlRuJ7WCFj1dEyvO9UOsye70nFlWjb9XU0owwgiM=";
  };

  nativeBuildInputs = (with python3Packages; [ numpy cython scipy ]) ++
    [ wrapQtAppsHook ];
  pythonRelaxDeps = true;

  postPatch = ''
    sed -i -e '/packages=\[/a "friture.playback",' pyproject.toml
  '';

  nativeBuildInputs =
    (with python3Packages; [
      numpy
      cython
      scipy
      setuptools
    ])
    ++ (with qt5; [ wrapQtAppsHook ]);

  buildInputs = with qt5; [ qtquickcontrols2 ];

  propagatedBuildInputs = with python3Packages; [
    sounddevice
@@ -26,11 +46,6 @@ python3Packages.buildPythonApplication rec {
    rtmixer
  ];

  postPatch = ''
    # Remove version constraints from Python dependencies in setup.py
    sed -i -E "s/\"([A-Za-z0-9]+)(=|>|<)=[0-9\.]+\"/\"\1\"/g" setup.py
  '';

  preFixup = ''
    makeWrapperArgs+=("''${qtWrapperArgs[@]}")
  '';
@@ -53,6 +68,9 @@ python3Packages.buildPythonApplication rec {
    homepage = "https://friture.org/";
    license = licenses.gpl3;
    platforms = platforms.linux; # fails on Darwin
    maintainers = with maintainers; [ laikq alyaeanyx ];
    maintainers = with maintainers; [
      laikq
      alyaeanyx
    ];
  };
}
+0 −1
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  pythonAtLeast,
  fetchPypi,
  cython,
  numpy,
+2 −2
Original line number Diff line number Diff line
@@ -30877,8 +30877,8 @@ with pkgs;
  freerdpUnstable = freerdp;
  friture = libsForQt5.callPackage ../applications/audio/friture {
    python3Packages = python39Packages;
  friture = callPackage ../by-name/fr/friture/package.nix {
    python3Packages = python311Packages;
  };
  g933-utils = callPackage ../tools/misc/g933-utils { };