nixpkgs/pkgs/development/python-modules/bring-api/default.nix
2024-04-11 09:33:35 +02:00

49 lines
982 B
Nix

{
lib,
aiohttp,
aioresponses,
buildPythonPackage,
fetchFromGitHub,
pytest-asyncio,
pytestCheckHook,
python-dotenv,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "bring-api";
version = "0.7.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "miaucl";
repo = "bring-api";
rev = "refs/tags/${version}";
hash = "sha256-fhZMn0v908VzV+JLuS8tM+BPKJBoj77vEh1pINL4Cco=";
};
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 ];
};
}