{ lib, stdenv, buildPythonPackage, fetchPypi, replaceVars, pkgs, }: buildPythonPackage rec { pname = "streamdeck"; version = "0.9.8"; format = "setuptools"; src = fetchPypi { inherit pname version; hash = "sha256-rO5K0gekDUzCJW06TCK59ZHjw5DvvlFeQ5zlGLMdASU="; }; patches = [ # substitute libusb path (replaceVars ./hardcode-libusb.patch { libusb = "${pkgs.hidapi}/lib/libhidapi-libusb${stdenv.hostPlatform.extensions.sharedLibrary}"; }) ]; pythonImportsCheck = [ "StreamDeck" ]; doCheck = false; meta = with lib; { description = "Python library to control the Elgato Stream Deck"; homepage = "https://github.com/abcminiuser/python-elgato-streamdeck"; license = licenses.mit; maintainers = with maintainers; [ majiir ]; }; }