1{
2 lib,
3 aiohttp,
4 buildPythonPackage,
5 fetchFromGitHub,
6 pythonOlder,
7 setuptools,
8}:
9
10buildPythonPackage {
11 pname = "python-bring-api";
12 version = "3.0.0-unstable-2024-02-03";
13 pyproject = true;
14
15 disabled = pythonOlder "3.8";
16
17 src = fetchFromGitHub {
18 owner = "eliasball";
19 repo = "python-bring-api";
20 # https://github.com/eliasball/python-bring-api/issues/16
21 rev = "8043562b22be1f6421a8771774868b105b6ca375";
22 hash = "sha256-VCGCm9N6pMhEYT9WuWh7qKacZEf6bcIpEsILfCC6his=";
23 };
24
25 nativeBuildInputs = [ setuptools ];
26
27 propagatedBuildInputs = [ aiohttp ];
28
29 # Module has no tests
30 doCheck = false;
31
32 pythonImportsCheck = [ "python_bring_api" ];
33
34 meta = with lib; {
35 description = "Module to access the Bring! shopping lists API";
36 homepage = "https://github.com/eliasball/python-bring-api";
37 license = licenses.mit;
38 maintainers = with maintainers; [ fab ];
39 };
40}