python3Packages.hidapi: 0.14.0.post2 -> 0.14.0.post4
This commit is contained in:
@@ -3,23 +3,41 @@
|
||||
stdenv,
|
||||
buildPythonPackage,
|
||||
fetchPypi,
|
||||
pkg-config,
|
||||
xcbuild,
|
||||
cython_0,
|
||||
cython,
|
||||
setuptools,
|
||||
hidapi,
|
||||
libusb1,
|
||||
udev,
|
||||
darwin,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "hidapi";
|
||||
version = "0.14.0.post2";
|
||||
format = "setuptools";
|
||||
version = "0.14.0.post4";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-bA6XumsFmjCdUbSVqPDV77zqh1a2QNmLb2u5/e8kWKw=";
|
||||
hash = "sha256-SPziU+Um0XtmP7+ZicccfvdlPO1fS+ZfFDfDE/s9vfY=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cython_0 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ xcbuild ];
|
||||
build-system = [
|
||||
cython
|
||||
setuptools
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ pkg-config ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ xcbuild ];
|
||||
|
||||
buildInputs = lib.optionals stdenv.hostPlatform.isLinux [
|
||||
hidapi
|
||||
libusb1
|
||||
];
|
||||
|
||||
env = lib.optionalAttrs stdenv.hostPlatform.isLinux {
|
||||
HIDAPI_SYSTEM_HIDAPI = true;
|
||||
};
|
||||
|
||||
propagatedBuildInputs =
|
||||
lib.optionals stdenv.hostPlatform.isLinux [ udev ]
|
||||
|
||||
@@ -5920,7 +5920,7 @@ self: super: with self; {
|
||||
};
|
||||
|
||||
hidapi = callPackage ../development/python-modules/hidapi {
|
||||
inherit (pkgs) udev;
|
||||
inherit (pkgs) hidapi udev;
|
||||
};
|
||||
|
||||
hid-parser = callPackage ../development/python-modules/hid-parser { };
|
||||
|
||||
Reference in New Issue
Block a user