1{
2 lib,
3 aiohttp,
4 buildPythonPackage,
5 fetchFromGitHub,
6 pytestCheckHook,
7 pythonOlder,
8 setuptools,
9}:
10
11buildPythonPackage rec {
12 pname = "aiopvapi";
13 version = "3.2.1";
14 pyproject = true;
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchFromGitHub {
19 owner = "sander76";
20 repo = "aio-powerview-api";
21 tag = "v${version}";
22 hash = "sha256-DBpu1vjK0uYwXF1fbbdoeqCd3a6VdeClhsTGkbf8o7U=";
23 };
24
25 build-system = [ setuptools ];
26
27 dependencies = [ aiohttp ];
28
29 nativeCheckInputs = [ pytestCheckHook ];
30
31 pythonImportsCheck = [ "aiopvapi" ];
32
33 disabledTests = [
34 # AssertionError
35 "test_remove_shade_from_scene"
36 ];
37
38 meta = with lib; {
39 description = "Python API for the PowerView API";
40 homepage = "https://github.com/sander76/aio-powerview-api";
41 changelog = "https://github.com/sander76/aio-powerview-api/releases/tag/v${version}";
42 license = with licenses; [ bsd3 ];
43 maintainers = with maintainers; [ fab ];
44 };
45}