Merge pull request #188465 from fabaff/airthings-ble

python310Packages.airthings-ble: init at 0.3.0
This commit is contained in:
Fabian Affolter 2022-08-27 10:51:50 +02:00 committed by GitHub
commit 71938e065f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 { };