nixpkgs/pkgs/development/python-modules/aionotion/default.nix
2023-05-23 23:59:48 +02:00

61 lines
1007 B
Nix

{ lib
, aiohttp
, aresponses
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pydantic
, pytest-aiohttp
, pytest-asyncio
, pytest-cov
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "aionotion";
version = "2023.05.5";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "bachya";
repo = pname;
rev = version;
hash = "sha256-/2sF8m5R8YXkP89bi5zR3h13r5LrFOl1OsixAcX0D4o=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
aiohttp
pydantic
];
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 ];
};
}