Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 32 lines 1.1 kB view raw
1{ lib, fetchFromGitHub, cmake, git, swig, boost, udev, pc-ble-driver, pythonOlder 2, buildPythonPackage, enum34, wrapt, future, setuptools, scikit-build, pythonAtLeast }: 3 4buildPythonPackage rec { 5 pname = "pc-ble-driver-py"; 6 version = "0.15.0"; 7 disabled = pythonOlder "3.6" || pythonAtLeast "3.9"; 8 9 src = fetchFromGitHub { 10 owner = "NordicSemiconductor"; 11 repo = "pc-ble-driver-py"; 12 rev = version; 13 sha256 = "1ckbsq9dwca8hpx9frf9xd80b4z4kn9j7jx94hza9bwzrh26x5ji"; 14 }; 15 16 # doCheck tries to write to the global python directory to install things 17 doCheck = false; 18 19 nativeBuildInputs = [ cmake swig git setuptools scikit-build ]; 20 buildInputs = [ boost pc-ble-driver ]; 21 propagatedBuildInputs = [ enum34 wrapt future ]; 22 23 dontUseCmakeConfigure = true; 24 25 meta = with lib; { 26 description = "Bluetooth Low Energy nRF5 SoftDevice serialization"; 27 homepage = "https://github.com/NordicSemiconductor/pc-ble-driver-py"; 28 license = licenses.unfreeRedistributable; 29 platforms = platforms.unix; 30 maintainers = with maintainers; [ gebner ]; 31 }; 32}