about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/homeassistant-bring-api/default.nix
blob: 2912e26f5c80c054a2f7957db1a164911c26754e (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
, setuptools
, pythonOlder
}:

buildPythonPackage rec {
  pname = "homeassistant-bring-api";
  version = "0.5.6";
  pyproject = true;

  disabled = pythonOlder "3.8";

  src = fetchFromGitHub {
    owner = "miaucl";
    repo = "homeassistant-bring-api";
    rev = "refs/tags/${version}";
    hash = "sha256-vfc4xKLeGF2FuBFwqU99qbkUDBK5Uz66S4F2ODRDPa8=";
  };

  nativeBuildInputs = [
    setuptools
  ];

  propagatedBuildInputs = [
    aiohttp
  ];

  # Module has no tests
  doCheck = false;

  pythonImportsCheck = [
    "homeassistant_bring_api"
  ];

  meta = with lib; {
    description = "Module to access the Bring! shopping lists API with Home Assistant";
    homepage = "https://github.com/miaucl/homeassistant-bring-api";
    changelog = "https://github.com/miaucl/homeassistant-bring-api/blob/${version}/CHANGELOG.md";
    license = licenses.mit;
    maintainers = with maintainers; [ fab ];
  };
}