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 { python3Packages.buildPythonApplication rec {
pname = "friture"; pname = "friture";
version = "0.49"; version = "0.49-unstable-2024-06-02";
pyproject = true;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "tlecomte"; owner = "tlecomte";
repo = pname; repo = pname;
rev = "v${version}"; rev = "405bffa585ece0cb535c32d0f4f6ace932b40103";
sha256 = "sha256-xKgyBV/Qc+9PgXyxcT0xG1GXLC6KnjavJ/0SUE+9VSY="; hash = "sha256-4xvIlRuJ7WCFj1dEyvO9UOsye70nFlWjb9XU0owwgiM=";
}; };
nativeBuildInputs = (with python3Packages; [ numpy cython scipy ]) ++ pythonRelaxDeps = true;
[ wrapQtAppsHook ];
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; [ propagatedBuildInputs = with python3Packages; [
sounddevice sounddevice
@ -26,11 +46,6 @@ python3Packages.buildPythonApplication rec {
rtmixer 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 = '' preFixup = ''
makeWrapperArgs+=("''${qtWrapperArgs[@]}") makeWrapperArgs+=("''${qtWrapperArgs[@]}")
''; '';
@ -53,6 +68,9 @@ python3Packages.buildPythonApplication rec {
homepage = "https://friture.org/"; homepage = "https://friture.org/";
license = licenses.gpl3; license = licenses.gpl3;
platforms = platforms.linux; # fails on Darwin platforms = platforms.linux; # fails on Darwin
maintainers = with maintainers; [ laikq alyaeanyx ]; maintainers = with maintainers; [
laikq
alyaeanyx
];
}; };
} }

View File

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

View File

@ -30877,8 +30877,8 @@ with pkgs;
freerdpUnstable = freerdp; freerdpUnstable = freerdp;
friture = libsForQt5.callPackage ../applications/audio/friture { friture = callPackage ../by-name/fr/friture/package.nix {
python3Packages = python39Packages; python3Packages = python311Packages;
}; };
g933-utils = callPackage ../tools/misc/g933-utils { }; g933-utils = callPackage ../tools/misc/g933-utils { };