about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pc-ble-driver-py/default.nix
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2021-10-23 14:16:27 +0200
committerFabian Affolter <mail@fabian-affolter.ch>2021-10-23 14:16:27 +0200
commit7d3bb3928df85fcfb44933c555d9722780c802f9 (patch)
treec29a61967d4c96a66722f0ba186f3cf8b0823873 /pkgs/development/python-modules/pc-ble-driver-py/default.nix
parent2d0ff634f1f2c52622d3371231fb47dcbcb2189d (diff)
python3Packages.pc-ble-driver-py: 0.15.0 -> 0.16.1
Diffstat (limited to 'pkgs/development/python-modules/pc-ble-driver-py/default.nix')
-rw-r--r--pkgs/development/python-modules/pc-ble-driver-py/default.nix55
1 files changed, 44 insertions, 11 deletions
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 058fb86388300..53fbed59dc18e 100644
--- a/pkgs/development/python-modules/pc-ble-driver-py/default.nix
+++ b/pkgs/development/python-modules/pc-ble-driver-py/default.nix
@@ -1,27 +1,60 @@
-{ 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";
   };
 
-  # 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
+  ];
 
-  nativeBuildInputs = [ cmake swig git setuptools scikit-build ];
-  buildInputs = [ boost pc-ble-driver ];
-  propagatedBuildInputs = [ enum34 wrapt future ];
+  propagatedBuildInputs = [
+    cryptography
+    wrapt
+  ];
 
   dontUseCmakeConfigure = true;
 
+  # doCheck tries to write to the global python directory to install things
+  doCheck = false;
+
+  pythonImportsCheck = [
+    "pc_ble_driver_py"
+  ];
+
   meta = with lib; {
     description = "Bluetooth Low Energy nRF5 SoftDevice serialization";
     homepage = "https://github.com/NordicSemiconductor/pc-ble-driver-py";