92b3d6365d
GitOrigin-RevId: 412b9917cea092f3d39f9cd5dead4effd5bc4053
58 lines
977 B
Nix
58 lines
977 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
|
|
];
|
|
|
|
checkInputs = [
|
|
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 ];
|
|
};
|
|
}
|