5693944d8c
Diff: https://github.com/bachya/aioridwell/compare/refs/tags/2022.11.0...2023.01.0 Changelog: https://github.com/bachya/aioridwell/releases/tag/2023.01.0
73 lines
1.3 KiB
Nix
73 lines
1.3 KiB
Nix
{ lib
|
|
, aiohttp
|
|
, aresponses
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, freezegun
|
|
, poetry-core
|
|
, pyjwt
|
|
, pytest-aiohttp
|
|
, pytest-asyncio
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, pytz
|
|
, titlecase
|
|
, types-pytz
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aioridwell";
|
|
version = "2023.01.0";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bachya";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-enNYzU65QBT/ryCUNwB08U+QiFvVb03fbYzZ5Qk6GTk=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
pyjwt
|
|
pytz
|
|
titlecase
|
|
];
|
|
|
|
checkInputs = [
|
|
aresponses
|
|
freezegun
|
|
pytest-aiohttp
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
types-pytz
|
|
];
|
|
|
|
disabledTests = [
|
|
# AssertionError: assert datetime.date(...
|
|
"test_get_next_pickup_event"
|
|
];
|
|
|
|
disabledTestPaths = [
|
|
# Ignore the examples directory as the files are prefixed with test_
|
|
"examples/"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"aioridwell"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python library for interacting with Ridwell waste recycling";
|
|
homepage = "https://github.com/bachya/aioridwell";
|
|
changelog = "https://github.com/bachya/aioridwell/releases/tag/${version}";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|