depot/third_party/nixpkgs/pkgs/development/python-modules/pc-ble-driver-py/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

64 lines
1.3 KiB
Nix

{
lib,
boost,
buildPythonPackage,
cmake,
cryptography,
fetchFromGitHub,
git,
pc-ble-driver,
pythonOlder,
scikit-build,
setuptools,
swig,
wrapt,
}:
buildPythonPackage rec {
pname = "pc-ble-driver-py";
version = "0.17.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "NordicSemiconductor";
repo = "pc-ble-driver-py";
rev = "refs/tags/v${version}";
hash = "sha256-brC33ar2Jq3R2xdrklvVsQKf6pcnKwD25PO4TIvXgTg=";
};
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;
pythonImportsCheck = [ "pc_ble_driver_py" ];
meta = with lib; {
description = "Bluetooth Low Energy nRF5 SoftDevice serialization";
homepage = "https://github.com/NordicSemiconductor/pc-ble-driver-py";
changelog = "https://github.com/NordicSemiconductor/pc-ble-driver-py/releases/tag/v${version}";
license = licenses.unfreeRedistributable;
maintainers = with maintainers; [ gebner ];
platforms = platforms.unix;
};
}