mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 03:34:58 +00:00
02dab4ab5c
Long term we should move everything over to `pyproject = true`, but in the mean time we can work towards deprecating the implicit `format` paremeter. cc https://github.com/NixOS/nixpkgs/issues/253154 cc @mweinelt @figsoda
37 lines
822 B
Nix
37 lines
822 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 = 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;
|
|
};
|
|
}
|