2020-04-24 23:36:52 +00:00
|
|
|
{ lib, fetchFromGitHub, python3Packages, wrapQtAppsHook }:
|
|
|
|
|
|
|
|
let
|
|
|
|
py = python3Packages;
|
|
|
|
in py.buildPythonApplication rec {
|
|
|
|
pname = "friture";
|
2021-08-18 13:19:15 +00:00
|
|
|
version = "0.47";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tlecomte";
|
|
|
|
repo = pname;
|
2021-08-18 13:19:15 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1qcsvmgdz9hhv5gaa918147wvng6manc4iq8ci6yr761ljqrgwjx";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = (with py; [ numpy cython scipy ]) ++
|
|
|
|
[ wrapQtAppsHook ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = with py; [
|
|
|
|
sounddevice
|
|
|
|
pyopengl
|
2020-09-25 04:45:31 +00:00
|
|
|
pyopengl-accelerate
|
2020-04-24 23:36:52 +00:00
|
|
|
docutils
|
|
|
|
numpy
|
|
|
|
pyqt5
|
|
|
|
appdirs
|
|
|
|
pyrr
|
2020-09-25 04:45:31 +00:00
|
|
|
rtmixer
|
|
|
|
];
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
./unlock_constraints.patch
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2020-10-11 12:50:04 +00:00
|
|
|
preFixup = ''
|
|
|
|
makeWrapperArgs+=("''${qtWrapperArgs[@]}")
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A real-time audio analyzer";
|
2021-08-05 21:33:18 +00:00
|
|
|
homepage = "https://friture.org/";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux; # fails on Darwin
|
|
|
|
maintainers = [ maintainers.laikq ];
|
|
|
|
};
|
|
|
|
}
|