Merge pull request #186064 from fabaff/qingping-ble

This commit is contained in:
Martin Weinelt 2022-08-11 11:13:52 +02:00 committed by GitHub
commit cda7e7df5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 57 additions and 2 deletions

View File

@ -0,0 +1,53 @@
{ lib
, bluetooth-sensor-state-data
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pytestCheckHook
, pythonOlder
, sensor-state-data
}:
buildPythonPackage rec {
pname = "qingping-ble";
version = "0.2.3";
format = "pyproject";
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "bluetooth-devices";
repo = pname;
rev = "v${version}";
hash = "sha256-+iUZIsaSYgptHXtNSc9sJiBU8CUEFPDsLVGuFR5WvDw=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
bluetooth-sensor-state-data
sensor-state-data
];
checkInputs = [
pytestCheckHook
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace " --cov=qingping_ble --cov-report=term-missing:skip-covered" ""
'';
pythonImportsCheck = [
"qingping_ble"
];
meta = with lib; {
description = "Library for Qingping BLE devices";
homepage = "https://github.com/bluetooth-devices/qingping-ble";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

View File

@ -10,7 +10,7 @@
buildPythonPackage rec {
pname = "sensor-state-data";
version = "2.0.2";
version = "2.1.2";
format = "pyproject";
disabled = pythonOlder "3.9";
@ -19,7 +19,7 @@ buildPythonPackage rec {
owner = "Bluetooth-Devices";
repo = pname;
rev = "v${version}";
hash = "sha256-EywNH6REtopJoowsKQNNyJNYYyBR7L2pcrvmZAr5PZg=";
hash = "sha256-Z4sHrj0APoCfPhdSKB9guRrPo4TD47+GcQ0KoFgb268=";
};
nativeBuildInputs = [

View File

@ -9125,6 +9125,8 @@ in {
qimage2ndarray = callPackage ../development/python-modules/qimage2ndarray { };
qingping-ble = callPackage ../development/python-modules/qingping-ble { };
qiskit = callPackage ../development/python-modules/qiskit { };
qiskit-aer = callPackage ../development/python-modules/qiskit-aer { };