about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/dingz/default.nix
blob: 10354264861e086723fb00c9272e147f95f9e68f (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
{ lib
, aiohttp
, async-timeout
, buildPythonPackage
, click
, fetchFromGitHub
, pythonOlder
}:

buildPythonPackage rec {
  pname = "dingz";
  version = "0.5.0";
  format = "setuptools";

  disabled = pythonOlder "3.8";

  src = fetchFromGitHub {
    owner = "home-assistant-ecosystem";
    repo = "python-dingz";
    rev = version;
    hash = "sha256-bCytQwLWw8D1UkKb/3LQ301eDCkVR4alD6NHjTs6I+4=";
  };

  propagatedBuildInputs = [
    aiohttp
    async-timeout
    click
  ];

  # Project has no tests
  doCheck = false;

  pythonImportsCheck = [
    "dingz"
  ];

  meta = with lib; {
    description = "Python API for interacting with Dingz devices";
    mainProgram = "dingz";
    homepage = "https://github.com/home-assistant-ecosystem/python-dingz";
    license = with licenses; [ mit ];
    maintainers = with maintainers; [ fab ];
  };
}