1{ lib
2, aiohttp
3, async-timeout
4, buildPythonPackage
5, fetchFromGitHub
6, pytestCheckHook
7, pythonOlder
8}:
9
10buildPythonPackage rec {
11 pname = "aiopvapi";
12 version = "2.0.4";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchFromGitHub {
18 owner = "sander76";
19 repo = "aio-powerview-api";
20 rev = "refs/tags/v${version}";
21 hash = "sha256-cghfNi5T343/7GxNLDrE0iAewMlRMycQTP7SvDVpU2M=";
22 };
23
24 propagatedBuildInputs = [
25 aiohttp
26 async-timeout
27 ];
28
29 nativeCheckInputs = [
30 pytestCheckHook
31 ];
32
33 pythonImportsCheck = [
34 "aiopvapi"
35 ];
36
37 meta = with lib; {
38 description = "Python API for the PowerView API";
39 homepage = "https://github.com/sander76/aio-powerview-api";
40 license = with licenses; [ bsd3 ];
41 maintainers = with maintainers; [ fab ];
42 };
43}