1{ lib
2, aiohttp
3, aresponses
4, buildPythonPackage
5, fetchFromGitHub
6, freezegun
7, poetry-core
8, pyjwt
9, pytest-aiohttp
10, pytest-asyncio
11, pytestCheckHook
12, pythonOlder
13, pytz
14, titlecase
15, types-pytz
16}:
17
18buildPythonPackage rec {
19 pname = "aioridwell";
20 version = "2022.11.0";
21 format = "pyproject";
22
23 disabled = pythonOlder "3.8";
24
25 src = fetchFromGitHub {
26 owner = "bachya";
27 repo = pname;
28 rev = "refs/tags/${version}";
29 hash = "sha256-KxT3Se27b+XoTETXCljOVGVmEuXcpYxOhIBs1xAdtZ8=";
30 };
31
32 nativeBuildInputs = [
33 poetry-core
34 ];
35
36 propagatedBuildInputs = [
37 aiohttp
38 pyjwt
39 pytz
40 titlecase
41 ];
42
43 checkInputs = [
44 aresponses
45 freezegun
46 pytest-aiohttp
47 pytest-asyncio
48 pytestCheckHook
49 types-pytz
50 ];
51
52 disabledTests = [
53 # AssertionError: assert datetime.date(...
54 "test_get_next_pickup_event"
55 ];
56
57 disabledTestPaths = [
58 # Ignore the examples directory as the files are prefixed with test_
59 "examples/"
60 ];
61
62 pythonImportsCheck = [
63 "aioridwell"
64 ];
65
66 meta = with lib; {
67 description = "Python library for interacting with Ridwell waste recycling";
68 homepage = "https://github.com/bachya/aioridwell";
69 license = with licenses; [ mit ];
70 maintainers = with maintainers; [ fab ];
71 };
72}