about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/python-awair/default.nix
blob: b676a7a3de986d06e92bac5b8913954f4acba6df (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
46
47
{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pytest-aiohttp
, pytestCheckHook
, pythonOlder
, voluptuous
, vcrpy
}:

buildPythonPackage rec {
  pname = "python-awair";
  version = "0.2.2";
  format = "pyproject";
  disabled = pythonOlder "3.6";

  src = fetchFromGitHub {
    owner = "ahayworth";
    repo = "python_awair";
    rev = version;
    sha256 = "sha256-5+s1aSvt+rXyumvf/qZ58Uvmq0p45mu23Djbwgih3qI=";
  };

  nativeBuildInputs = [ poetry-core ];

  propagatedBuildInputs = [
    aiohttp
    voluptuous
  ];

  checkInputs = [
    pytest-aiohttp
    pytestCheckHook
    vcrpy
  ];

  pythonImportsCheck = [ "python_awair" ];

  meta = with lib; {
    description = "Python library for the Awair API";
    homepage = "https://github.com/ahayworth/python_awair";
    license = with licenses; [ mit ];
    maintainers = with maintainers; [ fab ];
  };
}