2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
dbus-python,
|
|
|
|
pygobject3,
|
2022-08-12 12:06:08 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "gatt";
|
|
|
|
version = "0.2.6";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "getsenic";
|
|
|
|
repo = "gatt-python";
|
2023-07-15 17:15:38 +00:00
|
|
|
rev = version;
|
2022-08-12 12:06:08 +00:00
|
|
|
hash = "sha256-GMLqQ9ojQ649hbbJB+KiQoOhiTWweOgv6zaCDzhIB5A=";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
dbus-python
|
|
|
|
pygobject3
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "gatt" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Bluetooth (Generic Attribute Profile) GATT SDK for Python";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "gattctl";
|
2022-08-12 12:06:08 +00:00
|
|
|
homepage = "https://github.com/getsenic/gatt-python/";
|
|
|
|
license = licenses.mit;
|
2023-08-04 22:07:22 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2022-08-12 12:06:08 +00:00
|
|
|
};
|
|
|
|
}
|