Unverified Commit badd14d8 authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

onthespot, zotify: drop (#449077)

parents 52c40358 e8aeb56f
Loading
Loading
Loading
Loading
+0 −86
Original line number Diff line number Diff line
{
  lib,
  copyDesktopItems,
  fetchFromGitHub,
  makeDesktopItem,
  python3,
  libsForQt5,
  ffmpeg,
}:

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

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

  pythonRemoveDeps = [
    "PyQt5-Qt5"
    "PyQt5-stubs"
    # Doesn't seem to be used in the sources and causes
    # build issues
    "PyOgg"
  ];

  pythonRelaxDeps = true;

  nativeBuildInputs = [
    copyDesktopItems
    libsForQt5.wrapQtAppsHook
  ];

  dependencies = with python3.pkgs; [
    async-timeout
    charset-normalizer
    defusedxml
    ffmpeg
    librespot
    music-tag
    packaging
    pillow
    protobuf
    pyqt5
    pyqt5-sip
    pyxdg
    requests
    setuptools
    show-in-file-manager
    urllib3
    zeroconf
  ];

  postInstall = ''
    install -Dm444 $src/src/onthespot/resources/icon.png $out/share/icons/hicolor/256x256/apps/onthespot.png
  '';

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

  desktopItems = [
    (makeDesktopItem {
      name = "Onthespot";
      exec = "onthespot_gui";
      icon = "onthespot";
      desktopName = "Onthespot";
      comment = meta.description;
      categories = [ "Audio" ];
    })
  ];

  meta = {
    description = "QT based Spotify music downloader written in Python";
    homepage = "https://github.com/casualsnek/onthespot";
    changelog = "https://github.com/casualsnek/onthespot/releases/tag/v${version}";
    license = lib.licenses.gpl2Only;
    maintainers = with lib.maintainers; [ onny ];
    platforms = lib.platforms.linux;
    mainProgram = "onthespot_gui";
  };
}
+0 −46
Original line number Diff line number Diff line
{
  fetchFromGitHub,
  python3Packages,
  lib,
}:
python3Packages.buildPythonApplication {
  pname = "zotify";
  version = "0.6.13";

  pyproject = true;

  src = fetchFromGitHub {
    owner = "zotify-dev";
    repo = "zotify";
    # repository has no version tags
    # https://github.com/zotify-dev/zotify/issues/124
    rev = "5da27d32a1f522e80a3129c61f939b1934a0824a";
    hash = "sha256-KA+Q4sk+riaFTybRQ3aO5lgPg4ECZE6G+By+x2uP/VM=";
  };

  build-system = [ python3Packages.setuptools ];

  pythonRelaxDeps = [ "protobuf" ];

  dependencies = with python3Packages; [
    ffmpy
    music-tag
    pillow
    tabulate
    tqdm
    librespot
    pwinput
    protobuf
  ];

  pythonImportsCheck = [ "zotify" ];

  meta = {
    description = "Fast and customizable music and podcast downloader";
    homepage = "https://github.com/zotify-dev/zotify";
    changelog = "https://github.com/zotify-dev/zotify/blob/main/CHANGELOG.md";
    license = lib.licenses.zlib;
    mainProgram = "zotify";
    maintainers = with lib.maintainers; [ bwkam ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -1932,6 +1932,7 @@ mapAliases {
  oil = lib.warnOnInstantiate "Oil has been replaced with the faster native C++ version and renamed to 'oils-for-unix'. See also https://github.com/oils-for-unix/oils/wiki/Oils-Deployments" oils-for-unix; # Added 2024-10-22
  oneDNN_2 = throw "oneDNN_2 has been removed as it was only used by rocmPackages.migraphx"; # added 2025-07-18
  onevpl-intel-gpu = lib.warnOnInstantiate "onevpl-intel-gpu has been renamed to vpl-gpu-rt" vpl-gpu-rt; # Added 2024-06-04
  onthespot = throw "onethespot has been removed due to lack of upstream maintenance"; # Added 2025-09-26
  openai-triton-llvm = triton-llvm; # added 2024-07-18
  openai-whisper-cpp = whisper-cpp; # Added 2024-12-13
  openbabel2 = throw "openbabel2 has been removed, as it was unused and unmaintained upstream; please use openbabel"; # Added 2025-09-17
@@ -2833,6 +2834,7 @@ mapAliases {
  zinc = zincsearch; # Added 2023-05-28
  zint = zint-qt; # Added 2025-05-15
  zombietrackergps = throw "'zombietrackergps' has been dropped, as it depends on KDE Gear 5 and is unmaintained"; # Added 2025-08-20
  zotify = throw "zotify has been removed due to lack of upstream maintenance"; # Added 2025-09-26
  zplugin = throw "'zplugin' has been renamed to/replaced by 'zinit'"; # Converted to throw 2024-10-17
  zk-shell = throw "zk-shell has been removed as it was broken and unmaintained"; # Added 2024-08-10
  zkg = throw "'zkg' has been replaced by 'zeek'"; # Added 2023-10-20