python310Packages.airthings-ble: init at 0.3.0
This commit is contained in:
parent
12f74551c7
commit
b1cc8121dd
2 changed files with 48 additions and 0 deletions
46
pkgs/development/python-modules/airthings-ble/default.nix
Normal file
46
pkgs/development/python-modules/airthings-ble/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue