1{
2 lib,
3 stdenv,
4 buildPythonPackage,
5 fetchPypi,
6 replaceVars,
7 pkgs,
8}:
9
10buildPythonPackage rec {
11 pname = "streamdeck";
12 version = "0.9.8";
13 format = "setuptools";
14
15 src = fetchPypi {
16 inherit pname version;
17 hash = "sha256-rO5K0gekDUzCJW06TCK59ZHjw5DvvlFeQ5zlGLMdASU=";
18 };
19
20 patches = [
21 # substitute libusb path
22 (replaceVars ./hardcode-libusb.patch {
23 libusb = "${pkgs.hidapi}/lib/libhidapi-libusb${stdenv.hostPlatform.extensions.sharedLibrary}";
24 })
25 ];
26
27 pythonImportsCheck = [ "StreamDeck" ];
28 doCheck = false;
29
30 meta = with lib; {
31 description = "Python library to control the Elgato Stream Deck";
32 homepage = "https://github.com/abcminiuser/python-elgato-streamdeck";
33 license = licenses.mit;
34 maintainers = with maintainers; [ majiir ];
35 };
36}