1{ lib
2, aiohttp
3, aresponses
4, buildPythonPackage
5, fetchFromGitHub
6, numpy
7, poetry-core
8, pysmb
9, pytest-aiohttp
10, pytest-asyncio
11, pytestCheckHook
12, pythonOlder
13}:
14
15buildPythonPackage rec {
16 pname = "pyairvisual";
17 version = "2022.12.1";
18 format = "pyproject";
19
20 disabled = pythonOlder "3.9";
21
22 src = fetchFromGitHub {
23 owner = "bachya";
24 repo = pname;
25 rev = "refs/tags/${version}";
26 hash = "sha256-xzTho4HsIU2YLURz9DfFfaRL3tsrtVi8n5IA2bRkyzw=";
27 };
28
29 nativeBuildInputs = [
30 poetry-core
31 ];
32
33 propagatedBuildInputs = [
34 aiohttp
35 numpy
36 pysmb
37 ];
38
39 nativeCheckInputs = [
40 aresponses
41 pytest-aiohttp
42 pytest-asyncio
43 pytestCheckHook
44 pytestCheckHook
45 ];
46
47 disabledTestPaths = [
48 # Ignore the examples directory as the files are prefixed with test_.
49 "examples/"
50 ];
51
52 pythonImportsCheck = [
53 "pyairvisual"
54 ];
55
56 meta = with lib; {
57 description = "Python library for interacting with AirVisual";
58 homepage = "https://github.com/bachya/pyairvisual";
59 changelog = "https://github.com/bachya/pyairvisual/releases/tag/${version}";
60 license = with licenses; [ mit ];
61 maintainers = with maintainers; [ fab ];
62 };
63}