* python313Packages.pyatmo: 9.0.0 -> 9.2.1 Diff: https://github.com/jabesq/pyatmo/compare/refs/tags/v9.0.0...refs/tags/v9.2.1 Changelog: https://github.com/jabesq/pyatmo/blob/v9.2.1/CHANGELOG.md
67 lines
1.2 KiB
Nix
67 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
aiohttp,
|
|
anyio,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
oauthlib,
|
|
pytest-asyncio,
|
|
pytest-mock,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
requests,
|
|
requests-oauthlib,
|
|
requests-mock,
|
|
setuptools-scm,
|
|
time-machine,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyatmo";
|
|
version = "9.2.1";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.11";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jabesq";
|
|
repo = "pyatmo";
|
|
tag = "v${version}";
|
|
hash = "sha256-vSyZsWhqyQqKFukD6GbtkAJd3QBmRwdmRIYD19DXQW0=";
|
|
};
|
|
|
|
pythonRelaxDeps = [
|
|
"oauthlib"
|
|
"requests-oauthlib"
|
|
"requests"
|
|
];
|
|
|
|
build-system = [ setuptools-scm ];
|
|
|
|
dependencies = [
|
|
aiohttp
|
|
oauthlib
|
|
requests
|
|
requests-oauthlib
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
anyio
|
|
pytest-asyncio
|
|
pytest-mock
|
|
pytestCheckHook
|
|
requests-mock
|
|
time-machine
|
|
];
|
|
|
|
pythonImportsCheck = [ "pyatmo" ];
|
|
|
|
meta = with lib; {
|
|
description = "Simple API to access Netatmo weather station data";
|
|
homepage = "https://github.com/jabesq/pyatmo";
|
|
changelog = "https://github.com/jabesq/pyatmo/blob/${src.tag}/CHANGELOG.md";
|
|
license = licenses.mit;
|
|
maintainers = [ ];
|
|
};
|
|
}
|