Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv, buildPythonPackage, fetchFromGitHub 2, pybluez }: 3 4buildPythonPackage { 5 pname = "bt-proximity"; 6 version = "0.0.20180217"; 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 meta = with stdenv.lib; { 22 description = "Bluetooth Proximity Detection using Python"; 23 homepage = "https://github.com/FrederikBolding/bluetooth-proximity"; 24 maintainers = with maintainers; [ peterhoeg ]; 25 license = licenses.asl20; 26 }; 27}