at master 867 B view raw
1{ 2 lib, 3 stdenv, 4 buildPythonPackage, 5 fetchFromGitHub, 6 bluez, 7 gattlib, 8}: 9 10buildPythonPackage { 11 pname = "pybluez"; 12 version = "unstable-2022-01-28"; 13 format = "setuptools"; 14 15 src = fetchFromGitHub { 16 owner = "pybluez"; 17 repo = "pybluez"; 18 rev = "5096047f90a1f6a74ceb250aef6243e144170f92"; 19 hash = "sha256-GA58DfCFaVzZQA1HYpGQ68bznrt4SX1ojyOVn8hyCGo="; 20 }; 21 22 buildInputs = [ bluez ]; 23 24 propagatedBuildInputs = [ gattlib ]; 25 26 # there are no tests 27 doCheck = false; 28 29 pythonImportsCheck = [ 30 "bluetooth" 31 "bluetooth.ble" 32 ]; 33 34 meta = with lib; { 35 description = "Bluetooth Python extension module"; 36 homepage = "https://github.com/pybluez/pybluez"; 37 license = licenses.gpl2; 38 maintainers = with maintainers; [ leenaars ]; 39 broken = stdenv.hostPlatform.isDarwin; # requires pyobjc-core, pyobjc-framework-Cocoa 40 }; 41}