3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/audio/friture/default.nix

47 lines
936 B
Nix
Raw Normal View History

2019-09-28 16:50:30 +01:00
{ lib, fetchFromGitHub, python3Packages, wrapQtAppsHook }:
let
py = python3Packages;
in py.buildPythonApplication rec {
pname = "friture";
version = "0.47";
2019-09-28 16:50:30 +01:00
src = fetchFromGitHub {
owner = "tlecomte";
repo = pname;
rev = "v${version}";
sha256 = "1qcsvmgdz9hhv5gaa918147wvng6manc4iq8ci6yr761ljqrgwjx";
2019-09-28 16:50:30 +01:00
};
nativeBuildInputs = (with py; [ numpy cython scipy ]) ++
[ wrapQtAppsHook ];
propagatedBuildInputs = with py; [
sounddevice
pyopengl
2020-07-20 17:09:40 +01:00
pyopengl-accelerate
2019-09-28 16:50:30 +01:00
docutils
numpy
pyqt5
appdirs
pyrr
2020-07-20 17:09:40 +01:00
rtmixer
];
patches = [
./unlock_constraints.patch
2019-09-28 16:50:30 +01:00
];
preFixup = ''
makeWrapperArgs+=("''${qtWrapperArgs[@]}")
2019-09-28 16:50:30 +01:00
'';
meta = with lib; {
description = "A real-time audio analyzer";
homepage = "https://friture.org/";
2019-09-28 16:50:30 +01:00
license = licenses.gpl3;
platforms = platforms.linux; # fails on Darwin
2019-09-28 16:50:30 +01:00
maintainers = [ maintainers.laikq ];
};
}