Merge pull request #325822 from linsui/friture

friture: 0.49 -> 0.49-unstable-2024-06-02
This commit is contained in:
Aleksana 2024-07-11 15:37:41 +08:00 committed by GitHub
commit 468cac1a5f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 32 additions and 15 deletions

View File

@ -1,18 +1,38 @@
{ 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
];
};
}

View File

@ -1,7 +1,6 @@
{
lib,
buildPythonPackage,
pythonAtLeast,
fetchPypi,
cython,
numpy,

View File

@ -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 { };