59 lines
1.1 KiB
Nix
59 lines
1.1 KiB
Nix
|
{
|
||
|
lib,
|
||
|
aiohttp,
|
||
|
aioresponses,
|
||
|
buildPythonPackage,
|
||
|
fetchFromGitHub,
|
||
|
mashumaro,
|
||
|
orjson,
|
||
|
poetry-core,
|
||
|
pytest-asyncio,
|
||
|
pytest-cov-stub,
|
||
|
pytestCheckHook,
|
||
|
pythonOlder,
|
||
|
syrupy,
|
||
|
yarl,
|
||
|
}:
|
||
|
|
||
|
buildPythonPackage rec {
|
||
|
pname = "aiomealie";
|
||
|
version = "0.9.3";
|
||
|
pyproject = true;
|
||
|
|
||
|
disabled = pythonOlder "3.11";
|
||
|
|
||
|
src = fetchFromGitHub {
|
||
|
owner = "joostlek";
|
||
|
repo = "python-mealie";
|
||
|
rev = "refs/tags/v${version}";
|
||
|
hash = "sha256-FJhmipWE3DE4PRWkEq8/j9iz9HQ7G7J5I9hwjU6e3FA=";
|
||
|
};
|
||
|
|
||
|
build-system = [ poetry-core ];
|
||
|
|
||
|
dependencies = [
|
||
|
aiohttp
|
||
|
mashumaro
|
||
|
orjson
|
||
|
yarl
|
||
|
];
|
||
|
|
||
|
nativeCheckInputs = [
|
||
|
aioresponses
|
||
|
pytest-asyncio
|
||
|
pytest-cov-stub
|
||
|
pytestCheckHook
|
||
|
syrupy
|
||
|
];
|
||
|
|
||
|
pythonImportsCheck = [ "aiomealie" ];
|
||
|
|
||
|
meta = with lib; {
|
||
|
description = "Module to interact with Mealie";
|
||
|
homepage = "https://github.com/joostlek/python-mealie";
|
||
|
changelog = "https://github.com/joostlek/python-mealie/releases/tag/v${version}";
|
||
|
license = licenses.mit;
|
||
|
maintainers = with maintainers; [ fab ];
|
||
|
};
|
||
|
}
|