mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 08:53:21 +00:00
python312Packages.aiomealie: init at 0.4.0
Module to interact with Mealie https://github.com/joostlek/python-mealie
This commit is contained in:
parent
3c940494d1
commit
45990956da
61
pkgs/development/python-modules/aiomealie/default.nix
Normal file
61
pkgs/development/python-modules/aiomealie/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user