1{ lib 2, buildPythonPackage 3, fetchPypi 4, pybluez 5}: 6 7buildPythonPackage rec { 8 pname = "bt-proximity"; 9 version = "0.2.1"; 10 11 src = fetchPypi { 12 pname = "bt_proximity"; 13 inherit version; 14 sha256 = "0xlif91vblbz065531yjf8nmlcahrl4q5pz52bc1jmzz7iv9hpgq"; 15 }; 16 17 propagatedBuildInputs = [ 18 pybluez 19 ]; 20 21 # there are no tests 22 doCheck = false; 23 24 pythonImportsCheck = [ "bt_proximity" ]; 25 26 meta = with lib; { 27 description = "Bluetooth Proximity Detection using Python"; 28 homepage = "https://github.com/FrederikBolding/bluetooth-proximity"; 29 maintainers = with maintainers; [ peterhoeg ]; 30 license = licenses.asl20; 31 }; 32}