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