mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
e7950393af
Diff: jabesq-org/pyatmo@refs/tags/v8.0.3...v8.1.0 Changelog: https://github.com/jabesq/pyatmo/blob/v8.1.0/CHANGELOG.md
65 lines
1.1 KiB
Nix
65 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
aiohttp,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
oauthlib,
|
|
pytest-asyncio,
|
|
pytest-mock,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
requests,
|
|
requests-oauthlib,
|
|
requests-mock,
|
|
setuptools-scm,
|
|
time-machine,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyatmo";
|
|
version = "8.1.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.10";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jabesq";
|
|
repo = "pyatmo";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-SRuBV7XWt4Myks7kbUzGAscggspUbRoLOvYNiorF8To=";
|
|
};
|
|
|
|
pythonRelaxDeps = [
|
|
"oauthlib"
|
|
"requests-oauthlib"
|
|
"requests"
|
|
];
|
|
|
|
build-system = [ setuptools-scm ];
|
|
|
|
dependencies = [
|
|
aiohttp
|
|
oauthlib
|
|
requests
|
|
requests-oauthlib
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
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/v${version}/CHANGELOG.md";
|
|
license = licenses.mit;
|
|
maintainers = [ ];
|
|
};
|
|
}
|