Files
nixpkgs/pkgs/development/python-modules/bt-proximity/default.nix
2026-06-06 09:17:32 +07:00

38 lines
755 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
pybluez,
}:
buildPythonPackage (finalAttrs: {
pname = "bt-proximity";
version = "0.2.1";
pyproject = true;
__structuredAttrs = true;
src = fetchPypi {
pname = "bt_proximity";
inherit (finalAttrs) version;
hash = "sha256-+F2Ydjz/VxnYEuXfggnNUDFaLXLSh1GKAX/RtUNykXY=";
};
build-system = [ setuptools ];
dependencies = [ pybluez ];
# there are no tests
doCheck = false;
pythonImportsCheck = [ "bt_proximity" ];
meta = {
description = "Bluetooth Proximity Detection using Python";
homepage = "https://github.com/FrederikBolding/bluetooth-proximity";
maintainers = with lib.maintainers; [ peterhoeg ];
license = lib.licenses.asl20;
};
})