2021-10-28 06:52:43 +00:00
|
|
|
{ lib
|
|
|
|
, boost
|
|
|
|
, buildPythonPackage
|
|
|
|
, cmake
|
|
|
|
, cryptography
|
|
|
|
, fetchFromGitHub
|
|
|
|
, git
|
|
|
|
, pc-ble-driver
|
|
|
|
, pythonAtLeast
|
|
|
|
, pythonOlder
|
|
|
|
, scikit-build
|
|
|
|
, setuptools
|
|
|
|
, swig
|
|
|
|
, wrapt
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pc-ble-driver-py";
|
2021-10-28 06:52:43 +00:00
|
|
|
version = "0.16.1";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7" || pythonAtLeast "3.10";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "NordicSemiconductor";
|
|
|
|
repo = "pc-ble-driver-py";
|
2021-10-28 06:52:43 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0q2zag77drcjkjm0cbvy2sf6fq2a4yl5li1zv1xfwmy53ami9b5l";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
swig
|
|
|
|
git
|
|
|
|
setuptools
|
|
|
|
scikit-build
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
boost
|
|
|
|
pc-ble-driver
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
cryptography
|
|
|
|
wrapt
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
dontUseCmakeConfigure = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
# doCheck tries to write to the global python directory to install things
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"pc_ble_driver_py"
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00: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 ];
|
|
|
|
};
|
|
|
|
}
|