Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
61 lines
1.1 KiB
Nix
61 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
aiohttp,
|
|
aioresponses,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
mashumaro,
|
|
orjson,
|
|
pytest-asyncio,
|
|
pytestCheckHook,
|
|
python-dotenv,
|
|
pythonOlder,
|
|
setuptools,
|
|
syrupy,
|
|
yarl,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "bring-api";
|
|
version = "1.1.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.11";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "miaucl";
|
|
repo = "bring-api";
|
|
tag = version;
|
|
hash = "sha256-OxY9G7zy5VSpTOARoManJNvMg6ghIK0KJunanSgXKm0=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
# https://github.com/miaucl/bring-api/blob/1.0.0/requirements.txt
|
|
# pyproject.toml is out of sync
|
|
aiohttp
|
|
yarl
|
|
mashumaro
|
|
orjson
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
aioresponses
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
python-dotenv
|
|
syrupy
|
|
];
|
|
|
|
pythonImportsCheck = [ "bring_api" ];
|
|
|
|
meta = with lib; {
|
|
description = "Module to access the Bring! shopping lists API";
|
|
homepage = "https://github.com/miaucl/bring-api";
|
|
changelog = "https://github.com/miaucl/bring-api/releases/tag/${src.tag}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|