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.1.1";
16 pyproject = true;
17
18 disabled = pythonOlder "3.9";
19
20 src = fetchFromGitHub {
21 owner = "mib1185";
22 repo = "aiopegelonline";
23 tag = "v${version}";
24 hash = "sha256-kDz+q4Y6ImgXbY7OSC/PKXPtKdktixW+ee51xHMX9o4=";
25 };
26
27 postPatch = ''
28 substituteInPlace pyproject.toml \
29 --replace-fail "setuptools==75.6.0" "setuptools"
30 '';
31
32 build-system = [ setuptools ];
33
34 dependencies = [ aiohttp ];
35
36 nativeCheckInputs = [
37 aioresponses
38 pytest-asyncio
39 pytestCheckHook
40 ];
41
42 pythonImportsCheck = [ "aiopegelonline" ];
43
44 meta = with lib; {
45 description = "Library to retrieve data from PEGELONLINE";
46 homepage = "https://github.com/mib1185/aiopegelonline";
47 changelog = "https://github.com/mib1185/aiopegelonline/releases/tag/v${version}";
48 license = licenses.asl20;
49 maintainers = with maintainers; [ fab ];
50 };
51}