mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 05:33:23 +00:00
d6afe91d21
* friture: unstable-2020-02-16 -> v0.47 * python39Package -> python3Packages
47 lines
936 B
Nix
47 lines
936 B
Nix
{ lib, fetchFromGitHub, python3Packages, wrapQtAppsHook }:
|
|
|
|
let
|
|
py = python3Packages;
|
|
in py.buildPythonApplication rec {
|
|
pname = "friture";
|
|
version = "0.47";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tlecomte";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "1qcsvmgdz9hhv5gaa918147wvng6manc4iq8ci6yr761ljqrgwjx";
|
|
};
|
|
|
|
nativeBuildInputs = (with py; [ numpy cython scipy ]) ++
|
|
[ wrapQtAppsHook ];
|
|
|
|
propagatedBuildInputs = with py; [
|
|
sounddevice
|
|
pyopengl
|
|
pyopengl-accelerate
|
|
docutils
|
|
numpy
|
|
pyqt5
|
|
appdirs
|
|
pyrr
|
|
rtmixer
|
|
];
|
|
|
|
patches = [
|
|
./unlock_constraints.patch
|
|
];
|
|
|
|
preFixup = ''
|
|
makeWrapperArgs+=("''${qtWrapperArgs[@]}")
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "A real-time audio analyzer";
|
|
homepage = "https://friture.org/";
|
|
license = licenses.gpl3;
|
|
platforms = platforms.linux; # fails on Darwin
|
|
maintainers = [ maintainers.laikq ];
|
|
};
|
|
}
|