python312Packages.bthome-ble: refactor

This commit is contained in:
Fabian Affolter
2024-05-07 21:51:01 +02:00
parent adc0a6e779
commit 7b2440ca6c
@@ -25,11 +25,16 @@ buildPythonPackage rec {
hash = "sha256-umRPB0eUdFL4kIvqSfbw/Jzh7NZMY6WR4dK+1cyK3EI=";
};
nativeBuildInputs = [
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail " --cov=bthome_ble --cov-report=term-missing:skip-covered" ""
'';
build-system = [
poetry-core
];
propagatedBuildInputs = [
dependencies = [
bluetooth-data-tools
bluetooth-sensor-state-data
cryptography
@@ -41,11 +46,6 @@ buildPythonPackage rec {
pytestCheckHook
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace " --cov=bthome_ble --cov-report=term-missing:skip-covered" ""
'';
pythonImportsCheck = [
"bthome_ble"
];