1{
2 lib,
3 aiohttp,
4 aioresponses,
5 buildPythonPackage,
6 fetchFromGitHub,
7 pytest-asyncio,
8 pytestCheckHook,
9 python-dotenv,
10 pythonOlder,
11 setuptools,
12}:
13
14buildPythonPackage rec {
15 pname = "bring-api";
16 version = "0.7.1";
17 pyproject = true;
18
19 disabled = pythonOlder "3.8";
20
21 src = fetchFromGitHub {
22 owner = "miaucl";
23 repo = "bring-api";
24 rev = "refs/tags/${version}";
25 hash = "sha256-ca6VNC1AG+BAzEhH+N3cwXL9pIBwAX6qLWMpgkEjn98=";
26 };
27
28 build-system = [ setuptools ];
29
30 dependencies = [ aiohttp ];
31
32 nativeCheckInputs = [
33 aioresponses
34 pytest-asyncio
35 pytestCheckHook
36 python-dotenv
37 ];
38
39 pythonImportsCheck = [ "bring_api" ];
40
41 meta = with lib; {
42 description = "Module to access the Bring! shopping lists API";
43 homepage = "https://github.com/miaucl/bring-api";
44 changelog = "https://github.com/miaucl/bring-api/blob/${version}/CHANGELOG.md";
45 license = licenses.mit;
46 maintainers = with maintainers; [ fab ];
47 };
48}