98eb3e9ef5
GitOrigin-RevId: 00d80d13810dbfea8ab4ed1009b09100cca86ba8
37 lines
822 B
Nix
37 lines
822 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
substituteAll,
|
|
pkgs,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "streamdeck";
|
|
version = "0.9.5";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-BHliZrRFd64D+UD1xcpp2HAH4D0Z7tibawJobAMM65E=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|