You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

default.nix 984B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. { lib, fetchFromGitHub, python3Packages, wrapQtAppsHook }:
  2. let
  3. py = python3Packages;
  4. in py.buildPythonApplication rec {
  5. pname = "friture";
  6. version = "0.36";
  7. src = fetchFromGitHub {
  8. owner = "tlecomte";
  9. repo = "friture";
  10. rev = "v${version}";
  11. sha256 = "1pz8v0qbzqq3ig9w33cp027s6c8rj316x5sy8pqs5nsiny9ddnk6";
  12. };
  13. # module imports scipy.misc.factorial, but it has been removed since scipy
  14. # 1.3.0; use scipy.special.factorial instead
  15. patches = [ ./factorial.patch ];
  16. nativeBuildInputs = (with py; [ numpy cython scipy ]) ++
  17. [ wrapQtAppsHook ];
  18. propagatedBuildInputs = with py; [
  19. sounddevice
  20. pyopengl
  21. docutils
  22. numpy
  23. pyqt5
  24. appdirs
  25. pyrr
  26. ];
  27. postFixup = ''
  28. wrapQtApp $out/bin/friture
  29. wrapQtApp $out/bin/.friture-wrapped
  30. '';
  31. meta = with lib; {
  32. description = "A real-time audio analyzer";
  33. homepage = http://friture.org/;
  34. license = licenses.gpl3;
  35. maintainers = [ maintainers.laikq ];
  36. };
  37. }