diff --git a/pkgs/development/python-modules/pc-ble-driver-py/default.nix b/pkgs/development/python-modules/pc-ble-driver-py/default.nix index 058fb8638830..53fbed59dc18 100644 --- a/pkgs/development/python-modules/pc-ble-driver-py/default.nix +++ b/pkgs/development/python-modules/pc-ble-driver-py/default.nix @@ -1,26 +1,59 @@ -{ lib, fetchFromGitHub, cmake, git, swig, boost, udev, pc-ble-driver, pythonOlder -, buildPythonPackage, enum34, wrapt, future, setuptools, scikit-build, pythonAtLeast }: +{ lib +, boost +, buildPythonPackage +, cmake +, cryptography +, fetchFromGitHub +, git +, pc-ble-driver +, pythonAtLeast +, pythonOlder +, scikit-build +, setuptools +, swig +, udev +, wrapt +}: buildPythonPackage rec { pname = "pc-ble-driver-py"; - version = "0.15.0"; - disabled = pythonOlder "3.6" || pythonAtLeast "3.9"; + version = "0.16.1"; + + disabled = pythonOlder "3.7" || pythonAtLeast "3.10"; src = fetchFromGitHub { owner = "NordicSemiconductor"; repo = "pc-ble-driver-py"; - rev = version; - sha256 = "1ckbsq9dwca8hpx9frf9xd80b4z4kn9j7jx94hza9bwzrh26x5ji"; + rev = "v${version}"; + sha256 = "0q2zag77drcjkjm0cbvy2sf6fq2a4yl5li1zv1xfwmy53ami9b5l"; }; + nativeBuildInputs = [ + cmake + swig + git + setuptools + scikit-build + ]; + + buildInputs = [ + boost + pc-ble-driver + ]; + + propagatedBuildInputs = [ + cryptography + wrapt + ]; + + dontUseCmakeConfigure = true; + # doCheck tries to write to the global python directory to install things doCheck = false; - nativeBuildInputs = [ cmake swig git setuptools scikit-build ]; - buildInputs = [ boost pc-ble-driver ]; - propagatedBuildInputs = [ enum34 wrapt future ]; - - dontUseCmakeConfigure = true; + pythonImportsCheck = [ + "pc_ble_driver_py" + ]; meta = with lib; { description = "Bluetooth Low Energy nRF5 SoftDevice serialization";