@@ -1,27 +1,60 @@
1−{ lib, fetchFromGitHub, cmake, git, swig, boost, udev, pc-ble-driver, pythonOlder
2−, buildPythonPackage, enum34, wrapt, future, setuptools, scikit-build, pythonAtLeast }:
1+{ lib
2+, boost
3+, buildPythonPackage
4+, cmake
5+, cryptography
6+, fetchFromGitHub
7+, git
8+, pc-ble-driver
9+, pythonAtLeast
10+, pythonOlder
11+, scikit-build
12+, setuptools
13+, swig
14+, udev
15+, wrapt
16+}:
317
418buildPythonPackage rec {
519 pname = "pc-ble-driver-py";
6− version = "0.15.0";
7− disabled = pythonOlder "3.6" || pythonAtLeast "3.9";
20+ version = "0.16.1";
21+
22+ disabled = pythonOlder "3.7" || pythonAtLeast "3.10";
823
924 src = fetchFromGitHub {
1025 owner = "NordicSemiconductor";
1126 repo = "pc-ble-driver-py";
12− rev = version;
13− sha256 = "1ckbsq9dwca8hpx9frf9xd80b4z4kn9j7jx94hza9bwzrh26x5ji";
27+ rev = "v${version}";
28+ sha256 = "0q2zag77drcjkjm0cbvy2sf6fq2a4yl5li1zv1xfwmy53ami9b5l";
1429 };
1530
16− # doCheck tries to write to the global python directory to install things
17− doCheck = false;
31+ nativeBuildInputs = [
32+ cmake
33+ swig
34+ git
35+ setuptools
36+ scikit-build
37+ ];
38+
39+ buildInputs = [
40+ boost
41+ pc-ble-driver
42+ ];
1843
19− nativeBuildInputs = [ cmake swig git setuptools scikit-build ];
20− buildInputs = [ boost pc-ble-driver ];
21− propagatedBuildInputs = [ enum34 wrapt future ];
44+ propagatedBuildInputs = [
45+ cryptography
46+ wrapt
47+ ];
2248
2349 dontUseCmakeConfigure = true;
2450
51+ # doCheck tries to write to the global python directory to install things
52+ doCheck = false;
53+
54+ pythonImportsCheck = [
55+ "pc_ble_driver_py"
56+ ];
57+
2558 meta = with lib; {
2659 description = "Bluetooth Low Energy nRF5 SoftDevice serialization";
2760 homepage = "https://github.com/NordicSemiconductor/pc-ble-driver-py";