ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / pc-ble-driver-py / default.nix
blobb9f8486aa5d64156c1e495990e0717c7f63fd5eb
1 { lib
2 , boost
3 , buildPythonPackage
4 , cmake
5 , cryptography
6 , fetchFromGitHub
7 , git
8 , pc-ble-driver
9 , pythonAtLeast
10 , pythonOlder
11 , scikit-build
12 , setuptools
13 , swig
14 , wrapt
17 buildPythonPackage rec {
18   pname = "pc-ble-driver-py";
19   version = "0.17.0";
21   disabled = pythonOlder "3.7";
23   src = fetchFromGitHub {
24     owner = "NordicSemiconductor";
25     repo = "pc-ble-driver-py";
26     rev = "v${version}";
27     sha256 = "sha256-brC33ar2Jq3R2xdrklvVsQKf6pcnKwD25PO4TIvXgTg=";
28   };
30   nativeBuildInputs = [
31     cmake
32     swig
33     git
34     setuptools
35     scikit-build
36   ];
38   buildInputs = [
39     boost
40     pc-ble-driver
41   ];
43   propagatedBuildInputs = [
44     cryptography
45     wrapt
46   ];
48   dontUseCmakeConfigure = true;
50   # doCheck tries to write to the global python directory to install things
51   doCheck = false;
53   pythonImportsCheck = [
54     "pc_ble_driver_py"
55   ];
57   meta = with lib; {
58     description = "Bluetooth Low Energy nRF5 SoftDevice serialization";
59     homepage = "https://github.com/NordicSemiconductor/pc-ble-driver-py";
60     license = licenses.unfreeRedistributable;
61     platforms = platforms.unix;
62     maintainers = with maintainers; [ gebner ];
63   };