Merge pull request #136737 from SuperSandro2000/tauon

authored by Sandro and committed by GitHub f6e9e908 bcced5de

+168
+109
pkgs/applications/audio/tauon/default.nix
··· 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , pkg-config 5 + , python3Packages 6 + , ffmpeg 7 + , flac 8 + , gobject-introspection 9 + , gtk3 10 + , libnotify 11 + , libsamplerate 12 + , libvorbis 13 + , mpg123 14 + , libopenmpt 15 + , opusfile 16 + , pango 17 + , pulseaudio 18 + }: 19 + 20 + stdenv.mkDerivation rec { 21 + pname = "tauon"; 22 + version = "6.7.1"; 23 + 24 + src = fetchFromGitHub { 25 + owner = "Taiko2k"; 26 + repo = "TauonMusicBox"; 27 + rev = "v${version}"; 28 + sha256 = "1hm82yfq7q2akrrvff3vmwrd3bz34d2dk8jzhnizhnhar6xc6fzp"; 29 + }; 30 + 31 + postPatch = '' 32 + substituteInPlace tauon.py \ 33 + --replace 'install_mode = False' 'install_mode = True' \ 34 + --replace 'install_directory = os.path.dirname(__file__)' 'install_directory = "${placeholder "out"}/share/tauon"' 35 + 36 + substituteInPlace t_modules/t_main.py \ 37 + --replace 'install_mode = False' 'install_mode = True' \ 38 + --replace 'install_directory = sys.path[0]' 'install_directory = "${placeholder "out"}/share/tauon"' \ 39 + --replace 'libopenmpt.so' '${lib.getLib libopenmpt}/lib/libopenmpt.so' \ 40 + --replace 'lib/libphazor.so' '../../lib/libphazor.so' 41 + 42 + substituteInPlace t_modules/t_phazor.py \ 43 + --replace 'lib/libphazor.so' '../../lib/libphazor.so' 44 + 45 + patchShebangs compile-phazor.sh 46 + ''; 47 + 48 + postBuild = '' 49 + ./compile-phazor.sh 50 + ''; 51 + 52 + nativeBuildInputs = [ 53 + pkg-config 54 + python3Packages.wrapPython 55 + ]; 56 + 57 + buildInputs = [ 58 + flac 59 + gobject-introspection 60 + gtk3 61 + libnotify 62 + libopenmpt 63 + libsamplerate 64 + libvorbis 65 + mpg123 66 + opusfile 67 + pango 68 + pulseaudio 69 + ]; 70 + 71 + pythonPath = with python3Packages; [ 72 + dbus-python 73 + isounidecode 74 + musicbrainzngs 75 + mutagen 76 + pillow 77 + pulsectl 78 + pycairo 79 + pylast 80 + pygobject3 81 + pylyrics 82 + pysdl2 83 + requests 84 + send2trash 85 + ]; 86 + 87 + makeWrapperArgs = [ 88 + "--prefix PATH : ${lib.makeBinPath [ffmpeg]}" 89 + "--prefix PYTHONPATH : $out/share/tauon" 90 + "--set GI_TYPELIB_PATH $GI_TYPELIB_PATH" 91 + ]; 92 + 93 + installPhase = '' 94 + install -Dm755 tauon.py $out/bin/tauon 95 + mkdir -p $out/share/tauon 96 + cp -r lib $out 97 + cp -r assets input.txt t_modules theme $out/share/tauon 98 + 99 + wrapPythonPrograms 100 + ''; 101 + 102 + meta = with lib; { 103 + description = "The Linux desktop music player from the future"; 104 + homepage = "https://tauonmusicbox.rocks/"; 105 + license = licenses.gpl3; 106 + maintainers = with maintainers; [ SuperSandro2000 ]; 107 + platforms = platforms.linux; 108 + }; 109 + }
+23
pkgs/development/python-modules/isounidecode/default.nix
··· 1 + { lib, buildPythonPackage, fetchPypi }: 2 + 3 + buildPythonPackage rec { 4 + pname = "isounidecode"; 5 + version = "0.3"; 6 + 7 + src = fetchPypi { 8 + inherit pname version; 9 + sha256 = "sha256-TbCpYsY0GCbJpprKq8L5I6WxJNU6M1voku8pFzvDHFs="; 10 + }; 11 + 12 + pythonImportsCheck = [ "isounidecode" ]; 13 + 14 + # no real tests included, fails to run 15 + doCheck = false; 16 + 17 + meta = with lib; { 18 + description = "Python package for conversion and transliteration of unicode into ascii or iso-8859-1"; 19 + homepage = "https://github.com/redvasily/isounidecode"; 20 + license = licenses.bsd3; 21 + maintainers = with maintainers; [ SuperSandro2000 ]; 22 + }; 23 + }
+30
pkgs/development/python-modules/pylyrics/default.nix
··· 1 + { lib, buildPythonPackage, fetchPypi, beautifulsoup4, requests }: 2 + 3 + buildPythonPackage rec { 4 + pname = "pylyrics"; 5 + version = "1.1.0"; 6 + 7 + src = fetchPypi { 8 + pname = "PyLyrics"; 9 + inherit version; 10 + extension = "zip"; 11 + sha256 = "sha256-xfNujvDtO0h6kkLONMGfloTkGKW7/9XTZ9wdFgS0zQs="; 12 + }; 13 + 14 + propagatedBuildInputs = [ 15 + beautifulsoup4 16 + requests 17 + ]; 18 + 19 + pythonImportsCheck = [ "PyLyrics" ]; 20 + 21 + # tries to connect to lyrics.wikia.com 22 + doCheck = false; 23 + 24 + meta = with lib; { 25 + description = "A Pythonic Implementation of lyrics.wikia.com for getting lyrics of songs "; 26 + homepage = "https://github.com/geekpradd/PyLyrics"; 27 + license = licenses.mit; 28 + maintainers = with maintainers; [ SuperSandro2000 ]; 29 + }; 30 + }
+2
pkgs/top-level/all-packages.nix
··· 905 905 906 906 sx-go = callPackage ../tools/security/sx-go { }; 907 907 908 + tauon = callPackage ../applications/audio/tauon { }; 909 + 908 910 tfk8s = callPackage ../tools/misc/tfk8s { }; 909 911 910 912 tnat64 = callPackage ../tools/networking/tnat64 { };
+4
pkgs/top-level/python-packages.nix
··· 3702 3702 3703 3703 isort = callPackage ../development/python-modules/isort { }; 3704 3704 3705 + isounidecode = callPackage ../development/python-modules/isounidecode { }; 3706 + 3705 3707 isoweek = callPackage ../development/python-modules/isoweek { }; 3706 3708 3707 3709 itanium_demangler = callPackage ../development/python-modules/itanium_demangler { }; ··· 6324 6326 pylutron = callPackage ../development/python-modules/pylutron { }; 6325 6327 6326 6328 pylutron-caseta = callPackage ../development/python-modules/pylutron-caseta { }; 6329 + 6330 + pylyrics = callPackage ../development/python-modules/pylyrics { }; 6327 6331 6328 6332 pylxd = callPackage ../development/python-modules/pylxd { }; 6329 6333