diff options
author | Gwendolyn Quasebarth <gwen@quasebarth.de> | 2019-09-28 17:50:30 +0200 |
---|---|---|
committer | Lassulus <github@lassul.us> | 2019-10-05 10:13:39 +0200 |
commit | daac44f01ae84ebd45d14cf218698d2414f3fc1e (patch) | |
tree | 45c23bb71ee3d1b2527fe1b1e4e6373c8715bc05 /pkgs/applications/audio/friture/default.nix | |
parent | 6673ad1996d999c123eb3c3221c64fe06c46b37f (diff) | |
download | nixpkgs-daac44f01ae84ebd45d14cf218698d2414f3fc1e.tar nixpkgs-daac44f01ae84ebd45d14cf218698d2414f3fc1e.tar.gz nixpkgs-daac44f01ae84ebd45d14cf218698d2414f3fc1e.tar.bz2 nixpkgs-daac44f01ae84ebd45d14cf218698d2414f3fc1e.tar.lz nixpkgs-daac44f01ae84ebd45d14cf218698d2414f3fc1e.tar.xz nixpkgs-daac44f01ae84ebd45d14cf218698d2414f3fc1e.tar.zst nixpkgs-daac44f01ae84ebd45d14cf218698d2414f3fc1e.zip |
friture: init at 0.36
Diffstat (limited to 'pkgs/applications/audio/friture/default.nix')
-rw-r--r-- | pkgs/applications/audio/friture/default.nix | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/applications/audio/friture/default.nix b/pkgs/applications/audio/friture/default.nix new file mode 100644 index 00000000000..483f873fbd5 --- /dev/null +++ b/pkgs/applications/audio/friture/default.nix @@ -0,0 +1,44 @@ +{ lib, fetchFromGitHub, python3Packages, wrapQtAppsHook }: + +let + py = python3Packages; +in py.buildPythonApplication rec { + pname = "friture"; + version = "0.36"; + + src = fetchFromGitHub { + owner = "tlecomte"; + repo = "friture"; + rev = "v${version}"; + sha256 = "1pz8v0qbzqq3ig9w33cp027s6c8rj316x5sy8pqs5nsiny9ddnk6"; + }; + + # module imports scipy.misc.factorial, but it has been removed since scipy + # 1.3.0; use scipy.special.factorial instead + patches = [ ./factorial.patch ]; + + nativeBuildInputs = (with py; [ numpy cython scipy ]) ++ + [ wrapQtAppsHook ]; + + propagatedBuildInputs = with py; [ + sounddevice + pyopengl + docutils + numpy + pyqt5 + appdirs + pyrr + ]; + + postFixup = '' + wrapQtApp $out/bin/friture + wrapQtApp $out/bin/.friture-wrapped + ''; + + meta = with lib; { + description = "A real-time audio analyzer"; + homepage = http://friture.org/; + license = licenses.gpl3; + maintainers = [ maintainers.laikq ]; + }; +} |