Skip to content

Instantly share code, notes, and snippets.

@lovesegfault
Created January 13, 2020 01:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lovesegfault/b5d6e179720b6862a0bb755cbc14b5b1 to your computer and use it in GitHub Desktop.
Save lovesegfault/b5d6e179720b6862a0bb755cbc14b5b1 to your computer and use it in GitHub Desktop.
{ lib
, hidapi
, nose
, fetchPypi
, buildPythonPackage
}:
buildPythonPackage rec {
pname = "hid";
version = "1.0.4";
src = fetchPypi {
inherit pname version;
sha256 = "f61b0382f37a334bc8ba8604bc84b94875ee4f594fbbaf82b2c3b3e827883fc1";
};
checkInputs = [ nose ];
buildInputs = [ hidapi ];
setupPyBuildFlags = [
"--include-dirs=${hidapi}/include"
"--libraries=hidapi"
"--library-dirs=${hidapi}/lib"
];
meta = with lib; {
description = "Python ctypes bindings for hidapi";
homepage = "https://github.com/apmorton/pyhidapi";
license = licenses.mit;
maintainers = with maintainers; [ lovesegfault ];
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment