python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / games / rare / default.nix
blobfbd3f9512821827e4d032a7f31184ea829e147cd
1 { lib, fetchFromGitHub, buildPythonApplication, qt5
2 , legendary-gl, pypresence, pyqt5, python, qtawesome, requests, typing-extensions }:
4 buildPythonApplication rec {
5   pname = "rare";
6   version = "1.9.3";
8   src = fetchFromGitHub {
9     owner = "Dummerle";
10     repo = "Rare";
11     rev = version;
12     sha256 = "sha256-M+OMsyamh4WHIx7Pv2sLylOrnSmYrv1aEm3atqXrDaw=";
13   };
15   nativeBuildInputs = [
16     qt5.wrapQtAppsHook
17   ];
19   propagatedBuildInputs = [
20     legendary-gl
21     pypresence
22     pyqt5
23     qtawesome
24     requests
25     typing-extensions
26   ];
28   patches = [ ./fix-instance.patch ];
30   dontWrapQtApps = true;
32   postInstall = ''
33     install -Dm644 misc/rare.desktop -t $out/share/applications/
34     install -Dm644 $out/${python.sitePackages}/rare/resources/images/Rare.png $out/share/pixmaps/rare.png
35   '';
37   preFixup = ''
38     makeWrapperArgs+=("''${qtWrapperArgs[@]}")
39   '';
41   # Project has no tests
42   doCheck = false;
44   meta = with lib; {
45     description = "GUI for Legendary, an Epic Games Launcher open source alternative";
46     homepage = "https://github.com/Dummerle/Rare";
47     maintainers = with maintainers; [ wolfangaukang ];
48     license = licenses.gpl3Only;
49     platforms = platforms.linux;
50   };