about summary refs log tree commit diff
path: root/pkgs/development/python-modules/python-family-hub-local/default.nix
blob: 14a14e829ead753a3e778bca78ca3cb45f227f67 (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
{
  lib,
  buildPythonPackage,
  aiohttp,
  async-timeout,
  pillow,
  fetchPypi,
  pytestCheckHook,
  pythonOlder,
}:

buildPythonPackage rec {
  pname = "python-family-hub-local";
  version = "0.0.2";
  format = "setuptools";

  disabled = pythonOlder "3.9";

  src = fetchPypi {
    inherit pname version;
    extension = "zip";
    hash = "sha256-bbOBlUJ4g+HOcJihEBAz3lsHR9Gn07z8st14FRFeJbc=";
  };

  propagatedBuildInputs = [
    aiohttp
    async-timeout
    pillow
  ];

  # Module has no tests
  doCheck = false;

  pythonImportsCheck = [ "pyfamilyhublocal" ];

  meta = with lib; {
    description = "Module to accesse information from Samsung FamilyHub fridges locally";
    homepage = "https://github.com/Klathmon/python-family-hub-local";
    license = licenses.asl20;
    maintainers = with maintainers; [ fab ];
  };
}