python312Packages.airgradient: init at 0.6.0

Module for AirGradient

https://github.com/airgradienthq/python-airgradient
This commit is contained in:
Fabian Affolter
2024-06-22 14:33:36 +02:00
parent 3c940494d1
commit 6503bc8e18
2 changed files with 63 additions and 0 deletions
@@ -0,0 +1,61 @@
{
lib,
aiohttp,
aioresponses,
buildPythonPackage,
fetchFromGitHub,
mashumaro,
orjson,
poetry-core,
pytest-asyncio,
pytestCheckHook,
pythonOlder,
syrupy,
yarl,
}:
buildPythonPackage rec {
pname = "airgradient";
version = "0.6.0";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "airgradienthq";
repo = "python-airgradient";
rev = "refs/tags/v${version}";
hash = "sha256-1miNMT4AiOEci/jfZJswaF/Dee0bCNH7CLiKoR443q0=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "--cov" ""
'';
build-system = [ poetry-core ];
dependencies = [
aiohttp
mashumaro
orjson
yarl
];
nativeCheckInputs = [
aioresponses
pytest-asyncio
pytestCheckHook
syrupy
];
pythonImportsCheck = [ "airgradient" ];
meta = with lib; {
description = "Module for AirGradient";
homepage = "https://github.com/airgradienthq/python-airgradient";
changelog = "https://github.com/airgradienthq/python-airgradient/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}
+2
View File
@@ -465,6 +465,8 @@ self: super: with self; {
aiozoneinfo = callPackage ../development/python-modules/aiozoneinfo { };
airgradient = callPackage ../development/python-modules/airgradient { };
airium = callPackage ../development/python-modules/airium { };
airly = callPackage ../development/python-modules/airly { };