2024-04-21 15:54:59 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
aiohttp,
|
|
|
|
aioresponses,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pytest-asyncio,
|
|
|
|
pytestCheckHook,
|
|
|
|
python-dotenv,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "bring-api";
|
2024-07-31 10:19:44 +00:00
|
|
|
version = "0.8.1";
|
2024-04-21 15:54:59 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
2024-07-31 10:19:44 +00:00
|
|
|
disabled = pythonOlder "3.11";
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "miaucl";
|
|
|
|
repo = "bring-api";
|
|
|
|
rev = "refs/tags/${version}";
|
2024-07-31 10:19:44 +00:00
|
|
|
hash = "sha256-w7DV+Idcg7OobFx+ECimngQKk0SCzd5F+DTg+WcnJwA=";
|
2024-04-21 15:54:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
dependencies = [ aiohttp ];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
aioresponses
|
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
|
|
|
python-dotenv
|
|
|
|
];
|
|
|
|
|
|
|
|
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/blob/${version}/CHANGELOG.md";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|