2021-01-25 00:26:54 -08:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub
|
2018-04-27 07:29:04 -07:00
|
|
|
, pybluez }:
|
|
|
|
|
2019-08-13 14:52:01 -07:00
|
|
|
buildPythonPackage {
|
2018-04-27 07:29:04 -07:00
|
|
|
pname = "bt-proximity";
|
2021-02-02 13:22:21 -08:00
|
|
|
version = "0.2";
|
2018-04-27 07:29:04 -07:00
|
|
|
|
|
|
|
# pypi only has a pre-compiled wheel and no sources
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "FrederikBolding";
|
|
|
|
repo = "bluetooth-proximity";
|
|
|
|
rev = "463bade8a9080b47f09bf4a47830b31c69c5dffd";
|
|
|
|
sha256 = "0anfh90cj3c2g7zqrjvq0d6dzpb4hjl6gk8zw0r349j2zw9i4h7y";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ pybluez ];
|
|
|
|
|
|
|
|
# there are no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-02-02 13:22:21 -08:00
|
|
|
pythonImportsCheck = [ "bt_proximity" ];
|
|
|
|
|
2021-01-10 23:54:33 -08:00
|
|
|
meta = with lib; {
|
2018-04-27 07:29:04 -07:00
|
|
|
description = "Bluetooth Proximity Detection using Python";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/FrederikBolding/bluetooth-proximity";
|
2018-04-27 07:29:04 -07:00
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|