c7f94ff3ce
GitOrigin-RevId: b85ed9dcbf187b909ef7964774f8847d554fab3b
36 lines
819 B
Nix
36 lines
819 B
Nix
{ lib
|
|
, stdenv
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, substituteAll
|
|
, pkgs
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "streamdeck";
|
|
version = "0.9.4";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-aVmWbrBhZ49NfwOp23FD1dxZF+w/q26fIOVs7iQXUxo=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|