summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/airpatrol/default.nix
blob: 9ac2a861c7f0b281ae26c071d648019a61354e9f (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
{
  lib,
  aiohttp,
  buildPythonPackage,
  fetchFromGitHub,
  pytestCheckHook,
  pytest-asyncio,
  setuptools,
}:

buildPythonPackage (finalAttrs: {
  pname = "airpatrol";
  version = "0.1.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "antondalgren";
    repo = "airpatrol";
    tag = "v${finalAttrs.version}";
    hash = "sha256-KPch1GsJ5my43d9SVpwGA2EmrkmeBGJWAkY51rDofTk=";
  };

  build-system = [ setuptools ];

  dependencies = [ aiohttp ];

  nativeCheckInputs = [
    pytestCheckHook
    pytest-asyncio
  ];

  pythonImportsCheck = [ "airpatrol" ];

  meta = {
    description = "Python package for interacting with AirPatrol devices";
    homepage = "https://github.com/antondalgren/airpatrol";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ jamiemagee ];
  };
})