biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / streamdeck / default.nix
blobba23f550e0c27dbb044ea963e8c4d4c1f2d8ee29
2   lib,
3   stdenv,
4   buildPythonPackage,
5   fetchPypi,
6   substituteAll,
7   pkgs,
8 }:
10 buildPythonPackage rec {
11   pname = "streamdeck";
12   version = "0.9.5";
13   format = "setuptools";
15   src = fetchPypi {
16     inherit pname version;
17     hash = "sha256-BHliZrRFd64D+UD1xcpp2HAH4D0Z7tibawJobAMM65E=";
18   };
20   patches = [
21     # substitute libusb path
22     (substituteAll {
23       src = ./hardcode-libusb.patch;
24       libusb = "${pkgs.hidapi}/lib/libhidapi-libusb${stdenv.hostPlatform.extensions.sharedLibrary}";
25     })
26   ];
28   pythonImportsCheck = [ "StreamDeck" ];
29   doCheck = false;
31   meta = with lib; {
32     description = "Python library to control the Elgato Stream Deck";
33     homepage = "https://github.com/abcminiuser/python-elgato-streamdeck";
34     license = licenses.mit;
35     maintainers = with maintainers; [ majiir ];
36   };