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