Diff: https://github.com/bachya/aioridwell/compare/refs/tags/2023.01.0...2023.07.0 Changelog: https://github.com/bachya/aioridwell/releases/tag/2023.07.0
74 lines
1.3 KiB
Nix
74 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.07.0";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bachya";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-8EPELXxSq+B9o9eMFeM5ZPVYTa1+kT/S6cO7hKtD18s=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
pyjwt
|
|
pytz
|
|
titlecase
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
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 ];
|
|
};
|
|
}
|