a0cb138ada
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
58 lines
983 B
Nix
58 lines
983 B
Nix
{ lib
|
|
, aiohttp
|
|
, aresponses
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, poetry-core
|
|
, pytest-aiohttp
|
|
, pytest-asyncio
|
|
, pytest-cov
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aionotion";
|
|
version = "2022.10.0";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bachya";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-DJkqFj87N8OlWHNto+tInj8QvVoNA9faLBb/pBbQl0U=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
aresponses
|
|
pytest-aiohttp
|
|
pytest-asyncio
|
|
pytest-cov
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTestPaths = [
|
|
"examples"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"aionotion"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python library for Notion Home Monitoring";
|
|
homepage = "https://github.com/bachya/aionotion";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|