Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / applications / misc / onthespot / default.nix
blob2a37f90d3bf3098bbbd6dd86935e79517e3d238d
1 { lib
2 , copyDesktopItems
3 , fetchFromGitHub
4 , makeDesktopItem
5 , python3
6 , wrapQtAppsHook
7 }:
9 python3.pkgs.buildPythonApplication rec {
10   pname = "onthespot";
11   version = "0.5";
12   format = "pyproject";
14   src = fetchFromGitHub {
15     owner = "casualsnek";
16     repo = "onthespot";
17     rev = "refs/tags/v${version}";
18     hash = "sha256-VaJBNsT7uNOGY43GnzhUqDQNiPoFZcc2UaIfOKgkufg=";
19   };
21   nativeBuildInputs = with python3.pkgs; [
22     copyDesktopItems
23     pythonRelaxDepsHook
24     wrapQtAppsHook
25   ];
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   ];
46   pythonRemoveDeps = [
47     "PyQt5-Qt5"
48     "PyQt5-stubs"
49   ];
51   pythonRelaxDeps = true;
53   preFixup = ''
54     makeWrapperArgs+=("''${qtWrapperArgs[@]}")
55   '';
57   meta = with lib; {
58     description = " QT based Spotify music downloader written in Python";
59     homepage = "https://github.com/casualsnek/onthespot";
60     changelog = "https://github.com/casualsnek/onthespot/releases/tag/v${version}";
61     license = licenses.gpl2Only;
62     maintainers = with maintainers; [ onny ];
63     platforms = platforms.linux;
64   };