python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / misc / drivers / steamcontroller / default.nix
blob50d1133c38201815405d093d99c71d81d7dbfeef
1 { lib, fetchFromGitHub, python3Packages, libusb1, linuxHeaders
2 }:
4 with python3Packages;
6 buildPythonApplication {
7   pname = "steamcontroller";
8   version = "2017-08-11";
10   src = fetchFromGitHub {
11     owner  = "ynsta";
12     repo   = "steamcontroller";
13     rev    = "80928ce237925e0d0d7a65a45b481435ba6b931e";
14     sha256 = "0lv9j2zv8fmkmc0x9r7fa8zac2xrwfczms35qz1nfa1hr84wniid";
15   };
17   postPatch = ''
18     substituteInPlace src/uinput.py --replace \
19       "/usr/include" "${linuxHeaders}/include"
20   '';
22   buildInputs = [ libusb1 ];
23   propagatedBuildInputs = [ psutil python3Packages.libusb1 ];
24   doCheck = false;
25   pythonImportsCheck = [ "steamcontroller" ];
27   meta = with lib; {
28     description = "A standalone Steam controller driver";
29     homepage    = "https://github.com/ynsta/steamcontroller";
30     license     = licenses.mit;
31     maintainers = with maintainers; [ rnhmjoj ];
32     platforms   = platforms.linux;
33   };