2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub
|
2018-04-27 15:29:04 +01:00
|
|
|
, pybluez }:
|
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
buildPythonPackage {
|
2018-04-27 15:29:04 +01:00
|
|
|
pname = "bt-proximity";
|
2021-02-02 21:22:21 +00:00
|
|
|
version = "0.2";
|
2018-04-27 15:29:04 +01: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 21:22:21 +00:00
|
|
|
pythonImportsCheck = [ "bt_proximity" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-04-27 15:29:04 +01:00
|
|
|
description = "Bluetooth Proximity Detection using Python";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/FrederikBolding/bluetooth-proximity";
|
2018-04-27 15:29:04 +01:00
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|