aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/python-modules/pc-ble-driver-py/default.nix
blob: 6250b5a2202d9dd5f725ae6730a99b54c40d5160 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ stdenv, fetchFromGitHub, cmake, git, swig, boost, udev, pc-ble-driver
, buildPythonPackage, enum34, wrapt, future, setuptools, scikit-build }:

buildPythonPackage rec {
  pname = "pc-ble-driver-py";
  version = "0.14.2";

  src = fetchFromGitHub {
    owner = "NordicSemiconductor";
    repo = "pc-ble-driver-py";
    rev = "v${version}";
    sha256 = "1zbi3v4jmgq1a3ml34dq48y1hinw2008vwqn30l09r5vqvdgnj8m";
  };

  # 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 ];
  propagatedBuildInputs = [ enum34 wrapt future ];

  dontUseCmakeConfigure = true;

  meta = with stdenv.lib; {
    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 ];
  };
}