python310Packages.qingping-ble: init at 0.2.3

This commit is contained in:
Fabian Affolter 2022-08-11 09:55:24 +02:00
parent 2c6fab97ec
commit 89778121cb
2 changed files with 55 additions and 0 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

@ -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 { };