summaryrefslogtreecommitdiffstats
path: root/pkgs/development/python-modules/aiocentriconnect/default.nix
blob: d1dcd4c93e2ef1257047a3d8a62caa1837cde993 (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
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  aiohttp,
  async-timeout,
  backoff,
  aresponses,
  pytest-asyncio,
  pytestCheckHook,
}:

buildPythonPackage (finalAttrs: {
  pname = "aiocentriconnect";
  version = "0.2.3";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "gresrun";
    repo = "aiocentriconnect";
    tag = "v${finalAttrs.version}";
    hash = "sha256-CBCD5JMUBD0NpkUVIaCXdsbKYgucELs11Pk9z0YufQw=";
  };

  build-system = [ setuptools ];

  dependencies = [
    aiohttp
    async-timeout
    backoff
  ];

  nativeCheckInputs = [
    aresponses
    pytest-asyncio
    pytestCheckHook
  ];

  pythonImportsCheck = [ "aiocentriconnect" ];

  meta = {
    description = "Asynchronous Python client for CentriConnect/MyPropane API";
    homepage = "https://github.com/gresrun/aiocentriconnect";
    changelog = "https://github.com/gresrun/aiocentriconnect/releases/tag/${finalAttrs.src.tag}";
    license = lib.licenses.mit;
    maintainers = [ lib.maintainers.jamiemagee ];
  };
})