1{
2 lib,
3 aiohttp,
4 aioresponses,
5 buildPythonPackage,
6 fetchFromGitHub,
7 pytest-asyncio,
8 pytestCheckHook,
9 pythonOlder,
10 setuptools,
11}:
12
13buildPythonPackage rec {
14 pname = "aiopegelonline";
15 version = "0.0.10";
16 pyproject = true;
17
18 disabled = pythonOlder "3.9";
19
20 src = fetchFromGitHub {
21 owner = "mib1185";
22 repo = "aiopegelonline";
23 rev = "refs/tags/v${version}";
24 hash = "sha256-nKuqAzT1O5n9X/fEUm+M2RdB4u7moUGQzFA7knSEpBs=";
25 };
26
27 build-system = [ setuptools ];
28
29 dependencies = [ aiohttp ];
30
31 nativeCheckInputs = [
32 aioresponses
33 pytest-asyncio
34 pytestCheckHook
35 ];
36
37 pythonImportsCheck = [ "aiopegelonline" ];
38
39 meta = with lib; {
40 description = "Library to retrieve data from PEGELONLINE";
41 homepage = "https://github.com/mib1185/aiopegelonline";
42 changelog = "https://github.com/mib1185/aiopegelonline/releases/tag/v${version}";
43 license = licenses.asl20;
44 maintainers = with maintainers; [ fab ];
45 };
46}