python310Packages.airthings-ble: init at 0.3.0

This commit is contained in:
Fabian Affolter 2022-08-27 09:59:36 +02:00
parent 12f74551c7
commit b1cc8121dd
2 changed files with 48 additions and 0 deletions

View file

@ -0,0 +1,46 @@
{ lib
, bleak
, bleak-retry-connector
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pythonOlder
}:
buildPythonPackage rec {
pname = "airthings-ble";
version = "0.3.0";
format = "pyproject";
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "vincegio";
repo = pname;
rev = "v${version}";
hash = "sha256-E/+ObY/kO52J0nbyHGsBlqY5OYlnwf3ujAHEd1pEKvo=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
bleak
bleak-retry-connector
];
# Module has no tests
doCheck = false;
pythonImportsCheck = [
"airthings_ble"
];
meta = with lib; {
description = "Library for Airthings BLE devices";
homepage = "https://github.com/vincegio/airthings-ble";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

View file

@ -476,6 +476,8 @@ in {
airly = callPackage ../development/python-modules/airly { };
airthings-ble = callPackage ../development/python-modules/airthings-ble { };
airthings-cloud = callPackage ../development/python-modules/airthings-cloud { };
airtouch4pyapi = callPackage ../development/python-modules/airtouch4pyapi { };