Commit b393dadc authored by linsui's avatar linsui
Browse files

friture: 0.49 -> 0.49-unstable-2024-06-02

parent 54809f95
Loading
Loading
Loading
Loading
+15 −10
Original line number Diff line number Diff line
@@ -2,27 +2,37 @@
  lib,
  fetchFromGitHub,
  python3Packages,
  wrapQtAppsHook,
  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=";
  };

  pythonRelaxDeps = true;

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

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

  buildInputs = with qt5; [ qtquickcontrols2 ];

  propagatedBuildInputs = with python3Packages; [
    sounddevice
@@ -36,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[@]}")
  '';
+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
@@ -30899,8 +30899,8 @@ with pkgs;
  freerdpUnstable = freerdp;
  friture = libsForQt5.callPackage ../applications/audio/friture {
    python3Packages = python39Packages;
  friture = callPackage ../applications/audio/friture {
    python3Packages = python311Packages;
  };
  g933-utils = callPackage ../tools/misc/g933-utils { };