1{ lib
2, aiohttp
3, aresponses
4, buildPythonPackage
5, fetchFromGitHub
6, freezegun
7, poetry-core
8, pytest-asyncio
9, pytestCheckHook
10, pythonOlder
11}:
12
13buildPythonPackage rec {
14 pname = "aiorecollect";
15 version = "2021.10.0";
16 format = "pyproject";
17
18 disabled = pythonOlder "3.7";
19
20 src = fetchFromGitHub {
21 owner = "bachya";
22 repo = pname;
23 rev = version;
24 sha256 = "sha256-cLutszJ8VXGcqb8kZv7Qn1ZD/LRYjVgQWQxNMHNd0UQ=";
25 };
26
27 nativeBuildInputs = [
28 poetry-core
29 ];
30
31 propagatedBuildInputs = [
32 aiohttp
33 ];
34
35 checkInputs = [
36 aresponses
37 freezegun
38 pytest-asyncio
39 pytestCheckHook
40 ];
41
42 disabledTestPaths = [
43 # Ignore the examples directory as the files are prefixed with test_.
44 "examples/"
45 ];
46
47 pythonImportsCheck = [
48 "aiorecollect"
49 ];
50
51 meta = with lib; {
52 description = "Python library for the Recollect Waste API";
53 longDescription = ''
54 aiorecollect is a Python asyncio-based library for the ReCollect
55 Waste API. It allows users to programmatically retrieve schedules
56 for waste removal in their area, including trash, recycling, compost
57 and more.
58 '';
59 homepage = "https://github.com/bachya/aiorecollect";
60 license = with licenses; [ mit ];
61 maintainers = with maintainers; [ fab ];
62 };
63}