12 buildPythonPackage rec {
14 version = "0.14.0.post2";
15 format = "setuptools";
18 inherit pname version;
19 sha256 = "sha256-bA6XumsFmjCdUbSVqPDV77zqh1a2QNmLb2u5/e8kWKw=";
22 nativeBuildInputs = [ cython_0 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ xcbuild ];
24 propagatedBuildInputs =
25 lib.optionals stdenv.hostPlatform.isLinux [ udev ]
26 ++ lib.optionals stdenv.hostPlatform.isDarwin (
27 with darwin.apple_sdk.frameworks;
35 pythonImportsCheck = [ "hid" ];
38 description = "Cython interface to the hidapi from https://github.com/libusb/hidapi";
39 homepage = "https://github.com/trezor/cython-hidapi";
40 # license can actually be either bsd3 or gpl3
41 # see https://github.com/trezor/cython-hidapi/blob/master/LICENSE-orig.txt
42 license = with licenses; [
46 maintainers = with maintainers; [