Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 29 lines 777 B view raw
1{ lib, buildPythonPackage, fetchFromGitHub 2, pybluez }: 3 4buildPythonPackage { 5 pname = "bt-proximity"; 6 version = "0.2"; 7 8 # pypi only has a pre-compiled wheel and no sources 9 src = fetchFromGitHub { 10 owner = "FrederikBolding"; 11 repo = "bluetooth-proximity"; 12 rev = "463bade8a9080b47f09bf4a47830b31c69c5dffd"; 13 sha256 = "0anfh90cj3c2g7zqrjvq0d6dzpb4hjl6gk8zw0r349j2zw9i4h7y"; 14 }; 15 16 propagatedBuildInputs = [ pybluez ]; 17 18 # there are no tests 19 doCheck = false; 20 21 pythonImportsCheck = [ "bt_proximity" ]; 22 23 meta = with lib; { 24 description = "Bluetooth Proximity Detection using Python"; 25 homepage = "https://github.com/FrederikBolding/bluetooth-proximity"; 26 maintainers = with maintainers; [ peterhoeg ]; 27 license = licenses.asl20; 28 }; 29}