depot/third_party/nixpkgs/pkgs/development/python-modules/aionotion/default.nix

66 lines
1.1 KiB
Nix
Raw Normal View History

{ lib
, aiohttp
, aresponses
, buildPythonPackage
, certifi
, fetchFromGitHub
, poetry-core
, pydantic
, pytest-aiohttp
, pytest-asyncio
, pytest-cov
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "aionotion";
version = "2023.11.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "bachya";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-SxlMsntiG/geDDWDx5dyXkDaOkTEaDJI2zHlv4/+SDQ=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
aiohttp
certifi
pydantic
];
__darwinAllowLocalNetworking = true;
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";
changelog = "https://github.com/bachya/aionotion/releases/tag/${src.rev}";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}