2021-01-25 08:26:54 +00:00
|
|
|
{ lib, fetchFromGitHub, cmake, git, swig, boost, udev, pc-ble-driver, pythonOlder
|
2020-11-29 21:15:24 +00:00
|
|
|
, buildPythonPackage, enum34, wrapt, future, setuptools, scikit-build, pythonAtLeast }:
|
2019-05-19 11:12:09 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pc-ble-driver-py";
|
2020-07-13 12:50:05 +01:00
|
|
|
version = "0.14.2";
|
2020-11-29 21:15:24 +00:00
|
|
|
disabled = pythonOlder "3.6" || pythonAtLeast "3.9";
|
2019-05-19 11:12:09 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "NordicSemiconductor";
|
|
|
|
repo = "pc-ble-driver-py";
|
|
|
|
rev = "v${version}";
|
2020-07-13 12:50:05 +01:00
|
|
|
sha256 = "1zbi3v4jmgq1a3ml34dq48y1hinw2008vwqn30l09r5vqvdgnj8m";
|
2019-05-19 11:12:09 +01:00
|
|
|
};
|
|
|
|
|
2020-07-13 12:50:05 +01:00
|
|
|
# doCheck tries to write to the global python directory to install things
|
|
|
|
doCheck = false;
|
2019-05-19 11:12:09 +01:00
|
|
|
|
2020-07-13 12:50:05 +01:00
|
|
|
nativeBuildInputs = [ cmake swig git setuptools scikit-build ];
|
2020-07-19 22:36:27 +01:00
|
|
|
buildInputs = [ boost pc-ble-driver ];
|
2020-07-13 12:50:05 +01:00
|
|
|
propagatedBuildInputs = [ enum34 wrapt future ];
|
2019-05-19 11:12:09 +01:00
|
|
|
|
2020-07-13 12:50:05 +01:00
|
|
|
dontUseCmakeConfigure = true;
|
2019-05-19 11:12:09 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-05-19 11:12:09 +01:00
|
|
|
description = "Bluetooth Low Energy nRF5 SoftDevice serialization";
|
|
|
|
homepage = "https://github.com/NordicSemiconductor/pc-ble-driver-py";
|
|
|
|
license = licenses.unfreeRedistributable;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ gebner ];
|
|
|
|
};
|
|
|
|
}
|