Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
789 B · 34 lines
Nix
1234567891011121314151617181920212223242526272829303132333435{ lib, buildPythonPackage, fetchPypi, hidapi, nose}:
buildPythonPackage rec { pname = "hid"; version = "1.0.5"; format = "setuptools";
src = fetchPypi { inherit pname version; hash = "sha256-HpVOf3q5t8nfx421lQRpLBfbO3EklJK5drFSW5fbsOg="; };
propagatedBuildInputs = [ hidapi ];
nativeCheckInputs = [ nose ];
postPatch = '' hidapi=${hidapi}/lib/ test -d $hidapi || { echo "ERROR: $hidapi doesn't exist, please update/fix this build expression."; exit 1; } sed -i -e "s|libhidapi|$hidapi/libhidapi|" hid/__init__.py '';
meta = with lib; { description = "hidapi bindings in ctypes"; homepage = "https://github.com/apmorton/pyhidapi"; license = with licenses; [ mit ]; maintainers = with maintainers; [ AndersonTorres ]; };}