2022-07-18 16:21:45 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, substituteAll
|
|
|
|
, pkgs
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "streamdeck";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "0.9.5";
|
|
|
|
format = "setuptools";
|
2022-07-18 16:21:45 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-BHliZrRFd64D+UD1xcpp2HAH4D0Z7tibawJobAMM65E=";
|
2022-07-18 16:21:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
# substitute libusb path
|
|
|
|
(substituteAll {
|
|
|
|
src = ./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 ];
|
|
|
|
broken = stdenv.isDarwin;
|
|
|
|
};
|
|
|
|
}
|