Merge pull request #245501 from onny/onthespot

onthespot: init at 0.5

authored by Jonas Heinrich and committed by GitHub 52858df9 0b977622

+172
+64
pkgs/applications/misc/onthespot/default.nix
··· 1 + { lib 2 + , python3 3 + , fetchFromGitHub 4 + , copyDesktopItems 5 + , wrapQtAppsHook 6 + , makeDesktopItem 7 + }: 8 + 9 + python3.pkgs.buildPythonApplication rec { 10 + pname = "onthespot"; 11 + version = "0.5"; 12 + format = "pyproject"; 13 + 14 + src = fetchFromGitHub { 15 + owner = "casualsnek"; 16 + repo = "onthespot"; 17 + rev = "v${version}"; 18 + hash = "sha256-VaJBNsT7uNOGY43GnzhUqDQNiPoFZcc2UaIfOKgkufg="; 19 + }; 20 + 21 + nativeBuildInputs = with python3.pkgs; [ 22 + copyDesktopItems 23 + pythonRelaxDepsHook 24 + wrapQtAppsHook 25 + ]; 26 + 27 + propagatedBuildInputs = with python3.pkgs; [ 28 + charset-normalizer 29 + defusedxml 30 + librespot 31 + music-tag 32 + packaging 33 + pillow 34 + protobuf 35 + pyogg 36 + pyqt5 37 + pyqt5_sip 38 + pyxdg 39 + requests 40 + setuptools 41 + show-in-file-manager 42 + urllib3 43 + zeroconf 44 + ]; 45 + 46 + pythonRemoveDeps = [ 47 + "PyQt5-Qt5" 48 + "PyQt5-stubs" 49 + ]; 50 + 51 + pythonRelaxDeps = true; 52 + 53 + preFixup = '' 54 + makeWrapperArgs+=("''${qtWrapperArgs[@]}") 55 + ''; 56 + 57 + meta = { 58 + description = " QT based Spotify music downloader written in Python"; 59 + homepage = "https://github.com/casualsnek/onthespot"; 60 + license = lib.licenses.gpl2; 61 + maintainers = with lib.maintainers; [ onny ]; 62 + platforms = lib.platforms.linux; 63 + }; 64 + }
+61
pkgs/development/python-modules/librespot/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchFromGitHub 4 + , defusedxml 5 + , protobuf 6 + , pythonRelaxDepsHook 7 + , websocket-client 8 + , pyogg 9 + , zeroconf 10 + , requests 11 + , pycryptodomex 12 + , pytestCheckHook 13 + }: 14 + 15 + buildPythonPackage rec { 16 + pname = "librespot"; 17 + version = "0.0.9"; 18 + format = "setuptools"; 19 + 20 + src = fetchFromGitHub { 21 + owner = "kokarare1212"; 22 + repo = "librespot-python"; 23 + rev = "v${version}"; 24 + hash = "sha256-k9qVsxjRlUZ7vCBx00quiAR7S+YkfyoZiAKVnOOG4xM="; 25 + }; 26 + 27 + nativeBuildInputs = [ 28 + pythonRelaxDepsHook 29 + ]; 30 + 31 + propagatedBuildInputs = [ 32 + defusedxml 33 + protobuf 34 + pycryptodomex 35 + pyogg 36 + requests 37 + websocket-client 38 + zeroconf 39 + ]; 40 + 41 + pythonRelaxDeps = [ 42 + "protobuf" 43 + "pyogg" 44 + "requests" 45 + "zeroconf" 46 + ]; 47 + 48 + # Doesn't include any tests 49 + doCheck = false; 50 + 51 + pythonImportsCheck = [ 52 + "librespot" 53 + ]; 54 + 55 + meta = with lib; { 56 + description = "Open Source Spotify Client"; 57 + homepage = "https://github.com/kokarare1212/librespot-python"; 58 + license = licenses.asl20; 59 + maintainers = with maintainers; [ onny ]; 60 + }; 61 + }
+41
pkgs/development/python-modules/music-tag/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchPypi 4 + , mutagen 5 + , pytestCheckHook 6 + }: 7 + 8 + buildPythonPackage rec { 9 + pname = "music-tag"; 10 + version = "0.4.3"; 11 + format = "setuptools"; 12 + 13 + src = fetchPypi { 14 + inherit pname version; 15 + hash = "sha256-Cqtubu2o3w9TFuwtIZC9dFYbfgNWKrCRzo1Wh828//Y="; 16 + }; 17 + 18 + propagatedBuildInputs = [ 19 + mutagen 20 + ]; 21 + 22 + checkInputs = [ 23 + pytestCheckHook 24 + ]; 25 + 26 + pytestFlagsArray = [ "test" ]; 27 + 28 + # Tests fail: ModuleNotFoundError: No module named '_test_common' 29 + doCheck = false; 30 + 31 + pythonImportsCheck = [ 32 + "music_tag" 33 + ]; 34 + 35 + meta = with lib; { 36 + description = "Simple interface to edit audio file metadata"; 37 + homepage = "https://github.com/KristoforMaynard/music-tag"; 38 + license = licenses.mit; 39 + maintainers = with maintainers; [ onny ]; 40 + }; 41 + }
+2
pkgs/top-level/all-packages.nix
··· 11141 11141 inherit (darwin.apple_sdk.frameworks) Security; 11142 11142 }; 11143 11143 11144 + onthespot = libsForQt5.callPackage ../applications/misc/onthespot { }; 11145 + 11144 11146 opencorsairlink = callPackage ../tools/misc/opencorsairlink { }; 11145 11147 11146 11148 openfpgaloader = callPackage ../development/embedded/fpga/openfpgaloader { };
+4
pkgs/top-level/python-packages.nix
··· 5898 5898 (p: p.py) 5899 5899 ]; 5900 5900 5901 + librespot = callPackage ../development/python-modules/librespot { }; 5902 + 5901 5903 libretranslate = callPackage ../development/python-modules/libretranslate { }; 5902 5904 5903 5905 librosa = callPackage ../development/python-modules/librosa { }; ··· 6755 6757 muscima = callPackage ../development/python-modules/muscima { }; 6756 6758 6757 6759 musicbrainzngs = callPackage ../development/python-modules/musicbrainzngs { }; 6760 + 6761 + music-tag = callPackage ../development/python-modules/music-tag { }; 6758 6762 6759 6763 mutag = callPackage ../development/python-modules/mutag { }; 6760 6764