2021-02-07 21:39:46 +00:00
|
|
|
{ lib
|
|
|
|
, aiohttp
|
|
|
|
, aresponses
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, freezegun
|
|
|
|
, poetry-core
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytestCheckHook
|
2021-11-10 12:05:52 +00:00
|
|
|
, pythonOlder
|
2021-02-07 21:39:46 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aiorecollect";
|
2022-10-30 00:28:35 +01:00
|
|
|
version = "2022.10.0";
|
2021-02-07 21:39:46 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
2021-11-10 12:05:52 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
2021-02-07 21:39:46 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bachya";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-10-30 00:28:35 +01:00
|
|
|
sha256 = "sha256-JIh6jr4pFXGZTUi6K7VsymaCxCrTNBevk9xo9TsrFnM=";
|
2021-02-07 21:39:46 +00:00
|
|
|
};
|
|
|
|
|
2021-04-29 08:54:32 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
2021-02-07 21:39:46 +00:00
|
|
|
|
2021-04-29 08:54:32 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
];
|
2021-02-07 21:39:46 +00:00
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
aresponses
|
|
|
|
freezegun
|
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2021-11-10 12:05:52 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
# Ignore the examples directory as the files are prefixed with test_.
|
|
|
|
"examples/"
|
|
|
|
];
|
2021-04-29 08:54:32 +01:00
|
|
|
|
2021-11-10 12:05:52 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"aiorecollect"
|
|
|
|
];
|
2021-02-07 21:39:46 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python library for the Recollect Waste API";
|
|
|
|
longDescription = ''
|
|
|
|
aiorecollect is a Python asyncio-based library for the ReCollect
|
|
|
|
Waste API. It allows users to programmatically retrieve schedules
|
|
|
|
for waste removal in their area, including trash, recycling, compost
|
|
|
|
and more.
|
|
|
|
'';
|
|
|
|
homepage = "https://github.com/bachya/aiorecollect";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|