Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / streamdeck / default.nix
blob8354b840238fa744394d35a1719b98c734984c24
1 { lib
2 , stdenv
3 , buildPythonPackage
4 , fetchPypi
5 , substituteAll
6 , pkgs
7 }:
9 buildPythonPackage rec {
10   pname = "streamdeck";
11   version = "0.9.4";
13   src = fetchPypi {
14     inherit pname version;
15     hash = "sha256-aVmWbrBhZ49NfwOp23FD1dxZF+w/q26fIOVs7iQXUxo=";
16   };
18   patches = [
19     # substitute libusb path
20     (substituteAll {
21       src = ./hardcode-libusb.patch;
22       libusb = "${pkgs.hidapi}/lib/libhidapi-libusb${stdenv.hostPlatform.extensions.sharedLibrary}";
23     })
24   ];
26   pythonImportsCheck = [ "StreamDeck" ];
27   doCheck = false;
29   meta = with lib; {
30     description = "Python library to control the Elgato Stream Deck";
31     homepage = "https://github.com/abcminiuser/python-elgato-streamdeck";
32     license = licenses.mit;
33     maintainers = with maintainers; [ majiir ];
34     broken = stdenv.isDarwin;
35   };