python310Packages.bluetooth-auto-recovery: init at 0.1.0

This commit is contained in:
Fabian Affolter 2022-08-21 11:11:15 +02:00
parent 5948687c29
commit a5ab47173e
2 changed files with 57 additions and 0 deletions

View file

@ -0,0 +1,55 @@
{ lib
, async-timeout
, btsocket
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pyric
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "bluetooth-auto-recovery";
version = "0.1.0";
format = "pyproject";
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "Bluetooth-Devices";
repo = pname;
rev = "v${version}";
hash = "sha256-TeE/s7DU3KI7TiQqayJbdhJdh7XvdNV17I8bwB+bvJ0=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
async-timeout
btsocket
pyric
];
checkInputs = [
pytestCheckHook
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace " --cov=bluetooth_auto_recovery --cov-report=term-missing:skip-covered" ""
'';
pythonImportsCheck = [
"bluetooth_auto_recovery"
];
meta = with lib; {
description = "Library for recovering Bluetooth adapters";
homepage = "https://github.com/Bluetooth-Devices/bluetooth-auto-recovery";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

View file

@ -1403,6 +1403,8 @@ in {
bluetooth-adapters = callPackage ../development/python-modules/bluetooth-adapters { };
bluetooth-auto-recovery = callPackage ../development/python-modules/bluetooth-auto-recovery { };
bluetooth-data-tools= callPackage ../development/python-modules/bluetooth-data-tools { };
bluetooth-sensor-state-data = callPackage ../development/python-modules/bluetooth-sensor-state-data { };