summaryrefslogtreecommitdiffstats
path: root/pkgs/development/python-modules/aioharmanluxury/default.nix
blob: b1c9a41a06387991083bb596c6ef8226eae8a842 (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
{
  lib,
  aiohttp,
  buildPythonPackage,
  fetchFromGitHub,
  hatchling,
  pytest-asyncio,
  pytestCheckHook,
}:

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

  src = fetchFromGitHub {
    owner = "sbesh91";
    repo = "aioharmanluxury";
    tag = "v${finalAttrs.version}";
    hash = "sha256-cQO4oktFErwYc3sjRuBU+vavaeHjvyCxMZequc2A1jw=";
  };

  build-system = [ hatchling ];

  dependencies = [ aiohttp ];

  nativeCheckInputs = [
    pytest-asyncio
    pytestCheckHook
  ];

  pythonImportsCheck = [ "aioharmanluxury" ];

  meta = {
    description = "Async client for Harman Luxury Audio network streamers";
    homepage = "https://github.com/sbesh91/aioharmanluxury";
    changelog = "https://github.com/sbesh91/aioharmanluxury/releases/tag/${finalAttrs.src.tag}";
    license = lib.licenses.mit;
    maintainers = [ lib.maintainers.jamiemagee ];
  };
})