Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 24 additions & 18 deletions pkgs/by-name/on/onthespot/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,26 @@
fetchFromGitHub,
makeDesktopItem,
python3,
libsForQt5,
kdePackages,
ffmpeg,
}:

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

src = fetchFromGitHub {
owner = "casualsnek";
owner = "justin025";
repo = "onthespot";
tag = "v${version}";
hash = "sha256-VaJBNsT7uNOGY43GnzhUqDQNiPoFZcc2UaIfOKgkufg=";
hash = "sha256-W/7xfdSCrKrvG5M5IMPQyifjgE4H7t98YS4230HQd9c=";
};

build-system = [ python3.pkgs.setuptools ];

env.PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION = "python";
Comment thread
ryand56 marked this conversation as resolved.
Outdated

pythonRemoveDeps = [
"PyQt5-Qt5"
"PyQt5-stubs"
Expand All @@ -30,37 +34,36 @@ python3.pkgs.buildPythonApplication rec {

pythonRelaxDeps = true;

nativeBuildInputs = with python3.pkgs; [
nativeBuildInputs = [
copyDesktopItems
libsForQt5.wrapQtAppsHook
kdePackages.wrapQtAppsHook
];

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

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

preFixup = ''
makeWrapperArgs+=("''${qtWrapperArgs[@]}")
install -Dm444 $src/src/onthespot/resources/icons/onthespot.png $out/share/icons/hicolor/256x256/apps/onthespot.png
'';

desktopItems = [
Expand All @@ -70,16 +73,19 @@ python3.pkgs.buildPythonApplication rec {
icon = "onthespot";
desktopName = "Onthespot";
comment = meta.description;
categories = [ "Audio" ];
categories = [ "AudioVideo" ];
})
];

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}";
homepage = "https://github.com/justin025/onthespot";
changelog = "https://github.com/justin025/onthespot/releases/tag/v${version}";
license = lib.licenses.gpl2Only;
maintainers = with lib.maintainers; [ onny ];
maintainers = with lib.maintainers; [
onny
ryand56
];
platforms = lib.platforms.linux;
mainProgram = "onthespot_gui";
};
Expand Down