about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/python-bring-api/default.nix
blob: a5003690c404d9855addfbc3724ac438daa91ce8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, setuptools
}:

buildPythonPackage rec {
  pname = "python-bring-api";
  version = "3.0.0-unstable-2024-02-03";
  pyproject = true;

  disabled = pythonOlder "3.8";

  src = fetchFromGitHub {
    owner = "eliasball";
    repo = "python-bring-api";
    # https://github.com/eliasball/python-bring-api/issues/16
    rev = "8043562b22be1f6421a8771774868b105b6ca375";
    hash = "sha256-VCGCm9N6pMhEYT9WuWh7qKacZEf6bcIpEsILfCC6his=";
  };

  nativeBuildInputs = [
    setuptools
  ];

  propagatedBuildInputs = [
    aiohttp
  ];

  # Module has no tests
  doCheck = false;

  pythonImportsCheck = [
    "python_bring_api"
  ];

  meta = with lib; {
    description = "Module to access the Bring! shopping lists API";
    homepage = "https://github.com/eliasball/python-bring-api";
    license = licenses.mit;
    maintainers = with maintainers; [ fab ];
  };
}