python3Packages.bluetooth-adapters: init at 0.1.3

This commit is contained in:
Martin Weinelt 2022-08-03 18:39:19 +02:00
parent ad6dd34711
commit b933abab3f
No known key found for this signature in database
GPG key ID: 87C1E9888F856759
2 changed files with 67 additions and 0 deletions

View file

@ -0,0 +1,65 @@
{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, poetry-core
, async-timeout
, dbus-next
, myst-parser
, pytestCheckHook
, sphinxHook
, sphinx-rtd-theme
}:
buildPythonPackage rec {
pname = "bluetooth-adapters";
version = "0.1.3";
format = "pyproject";
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "Bluetooth-Devices";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-c96HgcmyiDwvcq8OsZ5s65VmAihz6KtCviP2h6Iu1Fo=";
};
postPatch = ''
# Drop pytest arguments (coverage, ...)
sed -i '/addopts/d' pyproject.toml
'';
outputs = [
"out"
"doc"
];
nativeBuildInputs = [
myst-parser
poetry-core
sphinx-rtd-theme
sphinxHook
];
propagatedBuildInputs = [
async-timeout
dbus-next
];
pythonImportsCheck = [
"bluetooth_adapters"
];
checkInputs = [
pytestCheckHook
];
meta = with lib; {
changelog = "https://github.com/bluetooth-devices/bluetooth-adapters/blob/main/CHANGELOG.md";
description = "Tools to enumerate and find Bluetooth Adapters";
homepage = "https://bluetooth-adapters.readthedocs.io/";
license = licenses.asl20;
maintainers = teams.home-assistant.members;
};
}

View file

@ -1347,6 +1347,8 @@ in {
bluepy-devices = callPackage ../development/python-modules/bluepy-devices { };
bluetooth-adapters = callPackage ../development/python-modules/bluetooth-adapters { };
blurhash = callPackage ../development/python-modules/blurhash { };
bme280spi = callPackage ../development/python-modules/bme280spi { };