diff options
Diffstat (limited to 'pkgs/development/python-modules/bthome-ble/default.nix')
-rw-r--r-- | pkgs/development/python-modules/bthome-ble/default.nix | 51 |
1 files changed, 23 insertions, 28 deletions
diff --git a/pkgs/development/python-modules/bthome-ble/default.nix b/pkgs/development/python-modules/bthome-ble/default.nix index cc99d7696c5b9..f0f92ec11904b 100644 --- a/pkgs/development/python-modules/bthome-ble/default.nix +++ b/pkgs/development/python-modules/bthome-ble/default.nix @@ -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" "" + ''; + + build-system = [ poetry-core ]; - propagatedBuildInputs = [ + 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"; |