python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / applications / plasma-mobile / audiotube.nix
blobee98e524afceec5f0306da96561a775e6414a22c
1 { lib
2 , mkDerivation
4 , extra-cmake-modules
5 , gcc11
7 , kcoreaddons
8 , kcrash
9 , ki18n
10 , kirigami2
11 , qtmultimedia
12 , qtquickcontrols2
13 , python3Packages
16 mkDerivation rec {
17   pname = "audiotube";
19   postPatch = "sed '1i#include <iostream>' -i src/ytmusic.cpp";
21   nativeBuildInputs = [
22     extra-cmake-modules
23     gcc11 # doesn't build with GCC 9 from stdenv on aarch64
24     python3Packages.wrapPython
25     python3Packages.pybind11
26   ];
28   buildInputs = [
29     kcoreaddons
30     kcrash
31     ki18n
32     kirigami2
33     qtmultimedia
34     qtquickcontrols2
35   ] ++ pythonPath;
37   pythonPath = with python3Packages; [
38     yt-dlp
39     ytmusicapi
40   ];
42   preFixup = ''
43     buildPythonPath "$pythonPath"
44     qtWrapperArgs+=(--prefix PYTHONPATH : "$program_PYTHONPATH")
45   '';
47   meta = with lib; {
48     description = "Client for YouTube Music";
49     homepage = "https://invent.kde.org/plasma-mobile/audiotube";
50     # https://invent.kde.org/plasma-mobile/audiotube/-/tree/c503d0607a3386112beaa9cf990ab85fe33ef115/LICENSES
51     license = with licenses; [ bsd2 cc0 gpl2Only gpl3Only ];
52     maintainers = with maintainers; [ samueldr ];
53   };