2021-03-23 19:22:30 +00:00
|
|
|
{ lib
|
|
|
|
, aiohttp
|
|
|
|
, aresponses
|
|
|
|
, buildPythonPackage
|
2024-01-13 08:15:51 +00:00
|
|
|
, certifi
|
2024-04-21 15:54:59 +00:00
|
|
|
, ciso8601
|
2021-03-23 19:22:30 +00:00
|
|
|
, fetchFromGitHub
|
2024-04-21 15:54:59 +00:00
|
|
|
, frozenlist
|
|
|
|
, mashumaro
|
2021-03-23 19:22:30 +00:00
|
|
|
, poetry-core
|
2024-04-21 15:54:59 +00:00
|
|
|
, pyjwt
|
2021-03-23 19:22:30 +00:00
|
|
|
, pytest-aiohttp
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytestCheckHook
|
2024-04-21 15:54:59 +00:00
|
|
|
, pytest-cov
|
2021-03-23 19:22:30 +00:00
|
|
|
, pythonOlder
|
2024-04-21 15:54:59 +00:00
|
|
|
, yarl
|
2021-03-23 19:22:30 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aionotion";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "2024.03.0";
|
|
|
|
pyproject = true;
|
2022-10-30 15:09:59 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-03-23 19:22:30 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bachya";
|
2024-04-21 15:54:59 +00:00
|
|
|
repo = "aionotion";
|
2024-01-13 08:15:51 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-BsbfLb5wCVxR8v2U2Zzt7LMl7XJcZWfVjZN47VDkhFc=";
|
2021-03-23 19:22:30 +00:00
|
|
|
};
|
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
2021-03-23 19:22:30 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
2024-01-13 08:15:51 +00:00
|
|
|
certifi
|
2024-04-21 15:54:59 +00:00
|
|
|
ciso8601
|
|
|
|
frozenlist
|
|
|
|
mashumaro
|
|
|
|
pyjwt
|
|
|
|
yarl
|
2021-03-23 19:22:30 +00:00
|
|
|
];
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-03-23 19:22:30 +00:00
|
|
|
aresponses
|
|
|
|
pytest-aiohttp
|
|
|
|
pytest-asyncio
|
|
|
|
pytest-cov
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
"examples"
|
|
|
|
];
|
2021-03-23 19:22:30 +00:00
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"aionotion"
|
|
|
|
];
|
2021-03-23 19:22:30 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python library for Notion Home Monitoring";
|
|
|
|
homepage = "https://github.com/bachya/aionotion";
|
2024-04-21 15:54:59 +00:00
|
|
|
changelog = "https://github.com/bachya/aionotion/releases/tag/${version}";
|
2021-03-23 19:22:30 +00:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|