1{
2 lib,
3 stdenv,
4 buildPythonPackage,
5 fetchPypi,
6 substituteAll,
7 pkgs,
8}:
9
10buildPythonPackage rec {
11 pname = "streamdeck";
12 version = "0.9.5";
13 format = "setuptools";
14
15 src = fetchPypi {
16 inherit pname version;
17 hash = "sha256-BHliZrRFd64D+UD1xcpp2HAH4D0Z7tibawJobAMM65E=";
18 };
19
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 ];
27
28 pythonImportsCheck = [ "StreamDeck" ];
29 doCheck = false;
30
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 broken = stdenv.isDarwin;
37 };
38}