Merge pull request #309925 from fabaff/bthome-ble-bump

python312Packages.bthome-ble: 3.8.1 -> 3.9.0
This commit is contained in:
Fabian Affolter 2024-05-08 00:02:05 +02:00 committed by GitHub
commit 3c33678493
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,19 +1,20 @@
{ lib
, bluetooth-data-tools
, bluetooth-sensor-state-data
, buildPythonPackage
, cryptography
, fetchFromGitHub
, poetry-core
, pytestCheckHook
, pythonOlder
, pytz
, sensor-state-data
{
lib,
bluetooth-data-tools,
bluetooth-sensor-state-data,
buildPythonPackage,
cryptography,
fetchFromGitHub,
poetry-core,
pytestCheckHook,
pythonOlder,
pytz,
sensor-state-data,
}:
buildPythonPackage rec {
pname = "bthome-ble";
version = "3.8.1";
version = "3.9.0";
pyproject = true;
disabled = pythonOlder "3.9";
@ -22,14 +23,17 @@ buildPythonPackage rec {
owner = "Bluetooth-Devices";
repo = "bthome-ble";
rev = "refs/tags/v${version}";
hash = "sha256-eaRFHrISxYovQLtNUPrgNw3ATClHqpZ+Us+JGmNNbyY=";
hash = "sha256-umRPB0eUdFL4kIvqSfbw/Jzh7NZMY6WR4dK+1cyK3EI=";
};
nativeBuildInputs = [
poetry-core
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail " --cov=bthome_ble --cov-report=term-missing:skip-covered" ""
'';
propagatedBuildInputs = [
build-system = [ poetry-core ];
dependencies = [
bluetooth-data-tools
bluetooth-sensor-state-data
cryptography
@ -37,18 +41,9 @@ buildPythonPackage rec {
pytz
];
nativeCheckInputs = [
pytestCheckHook
];
nativeCheckInputs = [ pytestCheckHook ];
postPatch = ''
substituteInPlace pyproject.toml \
--replace " --cov=bthome_ble --cov-report=term-missing:skip-covered" ""
'';
pythonImportsCheck = [
"bthome_ble"
];
pythonImportsCheck = [ "bthome_ble" ];
meta = with lib; {
description = "Library for BThome BLE devices";