Commit 446c03f5 authored by Jonas Heinrich's avatar Jonas Heinrich
Browse files

onthespot: init at 0.5

parent dfe350f2
Loading
Loading
Loading
Loading
+64 −0
Original line number Diff line number Diff line
{ lib
, python3
, fetchFromGitHub
, copyDesktopItems
, wrapQtAppsHook
, makeDesktopItem
}:

python3.pkgs.buildPythonApplication rec {
  pname = "onthespot";
  version = "0.5";
  format = "pyproject";

  src = fetchFromGitHub {
    owner = "casualsnek";
    repo = "onthespot";
    rev = "v${version}";
    hash = "sha256-VaJBNsT7uNOGY43GnzhUqDQNiPoFZcc2UaIfOKgkufg=";
  };

  nativeBuildInputs = with python3.pkgs; [
    copyDesktopItems
    pythonRelaxDepsHook
    wrapQtAppsHook
  ];

  propagatedBuildInputs = with python3.pkgs; [
    charset-normalizer
    defusedxml
    librespot
    music-tag
    packaging
    pillow
    protobuf
    pyogg
    pyqt5
    pyqt5_sip
    pyxdg
    requests
    setuptools
    show-in-file-manager
    urllib3
    zeroconf
  ];

  pythonRemoveDeps = [
    "PyQt5-Qt5"
    "PyQt5-stubs"
  ];

  pythonRelaxDeps = true;

  preFixup = ''
    makeWrapperArgs+=("''${qtWrapperArgs[@]}")
  '';

  meta = {
    description = " QT based Spotify music downloader written in Python";
    homepage = "https://github.com/casualsnek/onthespot";
    license = lib.licenses.gpl2;
    maintainers = with lib.maintainers; [ onny ];
    platforms = lib.platforms.linux;
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -11042,6 +11042,8 @@ with pkgs;
    inherit (darwin.apple_sdk.frameworks) Security;
  };
  onthespot = libsForQt5.callPackage ../applications/misc/onthespot { };
  opencorsairlink = callPackage ../tools/misc/opencorsairlink { };
  openfpgaloader = callPackage ../development/embedded/fpga/openfpgaloader { };