summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/python-awair/default.nix
blob: d4a04a62a4f0da85f7ef80ae73437949b9aafd8e (plain)
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
48
49
50
{
  lib,
  aiohttp,
  buildPythonPackage,
  fetchFromGitHub,
  poetry-core,
  pytest-asyncio,
  pytest-aiohttp,
  pytestCheckHook,
  pythonOlder,
  voluptuous,
  vcrpy,
}:

buildPythonPackage rec {
  pname = "python-awair";
  version = "0.2.5";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "ahayworth";
    repo = "python_awair";
    tag = version;
    hash = "sha256-ZET24T6MeCPPL1V84538U6Fb/ZVGv1hwcdTQi3Q+yMY=";
  };

  build-system = [ poetry-core ];

  dependencies = [
    aiohttp
    voluptuous
  ];

  nativeCheckInputs = [
    pytest-aiohttp
    pytest-asyncio
    pytestCheckHook
    vcrpy
  ];

  pythonImportsCheck = [ "python_awair" ];

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