python310Packages.qingping-ble: init at 0.2.3
This commit is contained in:
parent
2c6fab97ec
commit
89778121cb
2 changed files with 55 additions and 0 deletions
53
pkgs/development/python-modules/qingping-ble/default.nix
Normal file
53
pkgs/development/python-modules/qingping-ble/default.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -9125,6 +9125,8 @@ in {
|
||||||
|
|
||||||
qimage2ndarray = callPackage ../development/python-modules/qimage2ndarray { };
|
qimage2ndarray = callPackage ../development/python-modules/qimage2ndarray { };
|
||||||
|
|
||||||
|
qingping-ble = callPackage ../development/python-modules/qingping-ble { };
|
||||||
|
|
||||||
qiskit = callPackage ../development/python-modules/qiskit { };
|
qiskit = callPackage ../development/python-modules/qiskit { };
|
||||||
|
|
||||||
qiskit-aer = callPackage ../development/python-modules/qiskit-aer { };
|
qiskit-aer = callPackage ../development/python-modules/qiskit-aer { };
|
||||||
|
|
Loading…
Reference in a new issue