mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 16:36:38 +01:00
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
57 lines
1.1 KiB
Nix
57 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
aiohttp,
|
|
aioresponses,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
mashumaro,
|
|
orjson,
|
|
pytest-asyncio,
|
|
pytestCheckHook,
|
|
python-dotenv,
|
|
setuptools,
|
|
syrupy,
|
|
yarl,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "bring-api";
|
|
version = "1.1.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "miaucl";
|
|
repo = "bring-api";
|
|
tag = version;
|
|
hash = "sha256-BslU1ekbQIZh1f1zRYXbZdbOepB2+NWIuWZI4L/oxSg=";
|
|
};
|
|
|
|
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 = {
|
|
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 = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
}
|