dfadf9d7da
Diff: https://github.com/bieniu/nettigo-air-monitor/compare/refs/tags/2.2.2...3.0.0 Changelog: https://github.com/bieniu/nettigo-air-monitor/releases/tag/3.0.0
60 lines
1.1 KiB
Nix
60 lines
1.1 KiB
Nix
{ lib
|
|
, aiohttp
|
|
, aioresponses
|
|
, aqipy-atmotech
|
|
, buildPythonPackage
|
|
, dacite
|
|
, fetchFromGitHub
|
|
, pytest-asyncio
|
|
, pytest-error-for-skips
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, setuptools
|
|
, syrupy
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "nettigo-air-monitor";
|
|
version = "3.0.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.11";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bieniu";
|
|
repo = "nettigo-air-monitor";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-aiJoY+6sNfBmE1057UuMjV80hjVJ29t2X16IIe6dxWs=";
|
|
};
|
|
|
|
build-system = [
|
|
setuptools
|
|
];
|
|
|
|
dependencies = [
|
|
aiohttp
|
|
aqipy-atmotech
|
|
dacite
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
aioresponses
|
|
pytest-asyncio
|
|
pytest-error-for-skips
|
|
pytestCheckHook
|
|
syrupy
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"nettigo_air_monitor"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python module to get air quality data from Nettigo Air Monitor devices";
|
|
homepage = "https://github.com/bieniu/nettigo-air-monitor";
|
|
changelog = "https://github.com/bieniu/nettigo-air-monitor/releases/tag/${version}";
|
|
license = with licenses; [ asl20 ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|