My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/bluepy/default.nix

35 lines
797 B

{ lib
, buildPythonPackage
, fetchPypi
, pkg-config
, glib
}:
buildPythonPackage rec {
pname = "bluepy";
version = "1.3.0";
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 = with lib; {
description = "Python interface to Bluetooth LE on Linux";
homepage = "https://github.com/IanHarvey/bluepy";
maintainers = with maintainers; [ georgewhewell ];
platforms = platforms.linux;
license = licenses.gpl2;
};
}