Files
nixpkgs/pkgs/development/python-modules/bluepy/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

38 lines
831 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pkg-config,
glib,
}:
buildPythonPackage rec {
pname = "bluepy";
version = "1.3.0";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "1v0wjy1rz0rbwghr1z3xhdm06lqn9iig6vr5j2wmymh3w6pysw9a";
};
buildInputs = [ glib ];
nativeBuildInputs = [ pkg-config ];
# tests try to access hardware
checkPhase = ''
$out/bin/blescan --help > /dev/null
$out/bin/sensortag --help > /dev/null
$out/bin/thingy52 --help > /dev/null
'';
pythonImportsCheck = [ "bluepy" ];
meta = {
description = "Python interface to Bluetooth LE on Linux";
homepage = "https://github.com/IanHarvey/bluepy";
maintainers = with lib.maintainers; [ georgewhewell ];
platforms = lib.platforms.linux;
license = lib.licenses.gpl2;
};
}