depot/third_party/nixpkgs/pkgs/development/python-modules/nettigo-air-monitor/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

64 lines
1.3 KiB
Nix

{
lib,
aiohttp,
aioresponses,
aqipy-atmotech,
buildPythonPackage,
dacite,
fetchFromGitHub,
pytest-asyncio,
pytest-error-for-skips,
pytestCheckHook,
pythonOlder,
setuptools,
syrupy,
tenacity,
}:
buildPythonPackage rec {
pname = "nettigo-air-monitor";
version = "3.2.0";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "bieniu";
repo = "nettigo-air-monitor";
rev = "refs/tags/${version}";
hash = "sha256-2INL6ZXi7f4HD0ilhQLSivk8TfYh3qRSPRsCCtCLAP8=";
};
build-system = [ setuptools ];
dependencies = [
aiohttp
aqipy-atmotech
dacite
tenacity
];
nativeCheckInputs = [
aioresponses
pytest-asyncio
pytest-error-for-skips
pytestCheckHook
syrupy
];
disabledTests = [
# stuck in epoll
"test_retry_fail"
"test_retry_success"
];
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 ];
};
}