c6ca5b8f13
GitOrigin-RevId: e4d49de45a3b5dbcb881656b4e3986e666141ea9
36 lines
834 B
Nix
36 lines
834 B
Nix
{ lib
|
|
, stdenv
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, substituteAll
|
|
, pkgs
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "streamdeck";
|
|
version = "0.9.1";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "0116a376afc18f3abbf79cc1a4409f81472e19197d5641b9e97e697d105cbdc0";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|