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 = "2021.10.0"; 21 format = "pyproject"; 22 23 disabled = pythonOlder "3.8"; 24 25 src = fetchFromGitHub { 26 owner = "bachya"; 27 repo = pname; 28 rev = version; 29 sha256 = "sha256-h89gfdZvk7H22xAczaPMscTYZu0YeFxvFfL6/Oz2cJw="; 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 postPatch = '' 53 substituteInPlace pyproject.toml \ 54 --replace 'titlecase = "^2.3"' 'titlecase = "*"' \ 55 --replace 'pytz = "^2021.3"' 'pytz = "*"' 56 ''; 57 58 disabledTests = [ 59 # AssertionError: assert datetime.date(... 60 "test_get_next_pickup_event" 61 ]; 62 63 disabledTestPaths = [ 64 # Ignore the examples directory as the files are prefixed with test_ 65 "examples/" 66 ]; 67 68 pythonImportsCheck = [ 69 "aioridwell" 70 ]; 71 72 meta = with lib; { 73 description = "Python library for interacting with Ridwell waste recycling"; 74 homepage = "https://github.com/bachya/aioridwell"; 75 license = with licenses; [ mit ]; 76 maintainers = with maintainers; [ fab ]; 77 }; 78}