2020-04-24 23:36:52 +00:00
|
|
|
{ lib, fetchFromGitHub, python3Packages, wrapQtAppsHook }:
|
|
|
|
|
|
|
|
let
|
|
|
|
py = python3Packages;
|
|
|
|
in py.buildPythonApplication rec {
|
|
|
|
pname = "friture";
|
2020-09-25 04:45:31 +00:00
|
|
|
version = "unstable-2020-02-16";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tlecomte";
|
|
|
|
repo = pname;
|
2020-09-25 04:45:31 +00:00
|
|
|
rev = "4460b4e72a9c55310d6438f294424b5be74fc0aa";
|
|
|
|
sha256 = "1pmxzq78ibifby3gbir1ah30mgsqv0y7zladf5qf3sl5r1as0yym";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|