mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 20:33:21 +00:00
2b22c7d93c
- add changelog to meta
66 lines
1.3 KiB
Nix
66 lines
1.3 KiB
Nix
{ lib
|
|
, copyDesktopItems
|
|
, fetchFromGitHub
|
|
, makeDesktopItem
|
|
, python3
|
|
, wrapQtAppsHook
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "onthespot";
|
|
version = "0.5";
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "casualsnek";
|
|
repo = "onthespot";
|
|
rev = "refs/tags/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 = with lib; {
|
|
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 = licenses.gpl2Only;
|
|
maintainers = with maintainers; [ onny ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|