Files
nixpkgs/pkgs/development/python-modules/bt-proximity/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

33 lines
672 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pybluez,
}:
buildPythonPackage rec {
pname = "bt-proximity";
version = "0.2.1";
format = "setuptools";
src = fetchPypi {
pname = "bt_proximity";
inherit version;
sha256 = "0xlif91vblbz065531yjf8nmlcahrl4q5pz52bc1jmzz7iv9hpgq";
};
propagatedBuildInputs = [ 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;
};
}