mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-08 09:04:16 +01:00
44 lines
1 KiB
Nix
44 lines
1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
replaceVars,
|
|
pkgs,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "streamcontroller-streamdeck";
|
|
version = "0.1.5";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
inherit version;
|
|
pname = "streamcontroller_streamdeck";
|
|
hash = "sha256-JSDCg9PLDqxM1KdoCEnYzJip71re6rdS/mLn6fsGn9E=";
|
|
};
|
|
|
|
patches = [
|
|
# substitute libusb path
|
|
(replaceVars ./hardcode-libusb.patch {
|
|
libusb = "${pkgs.hidapi}/lib/libhidapi-libusb${stdenv.hostPlatform.extensions.sharedLibrary}";
|
|
})
|
|
];
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
pythonImportsCheck = [ "StreamDeck" ];
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
# This is a fork of abcminiuser/python-elgato-streamdeck targeted at StreamController.
|
|
description = "Python library to control the Elgato Stream Deck";
|
|
homepage = "https://github.com/StreamController/streamcontroller-python-elgato-streamdeck";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [
|
|
majiir
|
|
sifmelcara
|
|
];
|
|
};
|
|
}
|