Created
January 13, 2020 01:32
-
-
Save lovesegfault/b5d6e179720b6862a0bb755cbc14b5b1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ 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