python312Packages.aiomealie: init at 0.4.0

Module to interact with Mealie

https://github.com/joostlek/python-mealie
This commit is contained in:
Fabian Affolter 2024-06-22 14:57:29 +02:00
parent 3c940494d1
commit 45990956da
2 changed files with 63 additions and 0 deletions

View File

@ -0,0 +1,61 @@
{
lib,
aiohttp,
aioresponses,
buildPythonPackage,
fetchFromGitHub,
mashumaro,
orjson,
poetry-core,
pytest-asyncio,
pytestCheckHook,
pythonOlder,
syrupy,
yarl,
}:
buildPythonPackage rec {
pname = "aiomealie";
version = "0.4.0";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "joostlek";
repo = "python-mealie";
rev = "refs/tags/v${version}";
hash = "sha256-I1CA/YD2pNvBijSQgF/R8v5DfR/xyh0t/HGGiVE5UbY=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "--cov" ""
'';
build-system = [ poetry-core ];
dependencies = [
aiohttp
mashumaro
orjson
yarl
];
nativeCheckInputs = [
aioresponses
pytest-asyncio
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 ];
};
}

View File

@ -313,6 +313,8 @@ self: super: with self; {
aiomcache = callPackage ../development/python-modules/aiomcache { };
aiomealie = callPackage ../development/python-modules/aiomealie { };
aiomisc = callPackage ../development/python-modules/aiomisc { };
aiomisc-pytest = callPackage ../development/python-modules/aiomisc-pytest { };