Merge pull request #86064 from georgewhewell/init-bluepy

pythonPackages.bluepy: init at 1.3.0
This commit is contained in:
Jörg Thalheim 2020-04-27 16:49:26 +01:00 committed by GitHub
commit c3b4c131df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 37 additions and 0 deletions

View File

@ -0,0 +1,35 @@
{ stdenv
, 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 stdenv.lib; {
description = "Python interface to Bluetooth LE on Linux";
homepage = "https://github.com/IanHarvey/bluepy";
maintainers = with maintainers; [ georgewhewell ];
license = licenses.gpl2;
};
}

View File

@ -518,6 +518,8 @@ in {
blivet = callPackage ../development/python-modules/blivet { };
bluepy = callPackage ../development/python-modules/bluepy { };
boltons = callPackage ../development/python-modules/boltons { };
bravia-tv = callPackage ../development/python-modules/bravia-tv { };