pythonPackages.streamdeck: init at 0.9.1
This commit is contained in:
parent
db326782c8
commit
879407cf60
3 changed files with 51 additions and 0 deletions
36
pkgs/development/python-modules/streamdeck/default.nix
Normal file
36
pkgs/development/python-modules/streamdeck/default.nix
Normal file
|
@ -0,0 +1,36 @@
|
|||
{ 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;
|
||||
};
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
diff --git a/src/StreamDeck/Transport/LibUSBHIDAPI.py b/src/StreamDeck/Transport/LibUSBHIDAPI.py
|
||||
index 824c59c..f13754e 100644
|
||||
--- a/src/StreamDeck/Transport/LibUSBHIDAPI.py
|
||||
+++ b/src/StreamDeck/Transport/LibUSBHIDAPI.py
|
||||
@@ -110,7 +110,7 @@ class LibUSBHIDAPI(Transport):
|
||||
|
||||
search_library_names = {
|
||||
"Windows": ["hidapi.dll", "libhidapi-0.dll"],
|
||||
- "Linux": ["libhidapi-libusb.so", "libhidapi-libusb.so.0"],
|
||||
+ "Linux": ["@libusb@"],
|
||||
"Darwin": ["libhidapi.dylib"],
|
||||
}
|
||||
|
|
@ -10248,6 +10248,8 @@ in {
|
|||
|
||||
stravalib = callPackage ../development/python-modules/stravalib { };
|
||||
|
||||
streamdeck = callPackage ../development/python-modules/streamdeck { };
|
||||
|
||||
streaming-form-data = callPackage ../development/python-modules/streaming-form-data { };
|
||||
|
||||
streamlabswater = callPackage ../development/python-modules/streamlabswater { };
|
||||
|
|
Loading…
Reference in a new issue