depot/third_party/nixpkgs/pkgs/development/python-modules/nettigo-air-monitor/default.nix

55 lines
1.1 KiB
Nix
Raw Normal View History

{ lib
, aiohttp
, aioresponses
, aqipy-atmotech
, buildPythonPackage
, dacite
, fetchFromGitHub
, orjson
, pytest-asyncio
, pytest-error-for-skips
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "nettigo-air-monitor";
version = "2.1.0";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "bieniu";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-6pLdaBeyTIrsAzkr83Iywta+K4Vx3nt0QyL8opHNwV8=";
};
propagatedBuildInputs = [
aiohttp
aqipy-atmotech
dacite
orjson
];
nativeCheckInputs = [
aioresponses
pytest-asyncio
pytest-error-for-skips
pytestCheckHook
];
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 ];
};
}