2021-02-07 22:39:46 +01:00
|
|
|
{ lib
|
|
|
|
, aiohttp
|
|
|
|
, aresponses
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, freezegun
|
|
|
|
, poetry-core
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytestCheckHook
|
2021-11-10 13:05:52 +01:00
|
|
|
, pythonOlder
|
2021-02-07 22:39:46 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aiorecollect";
|
2021-11-10 13:05:52 +01:00
|
|
|
version = "2021.10.0";
|
2021-02-07 22:39:46 +01:00
|
|
|
format = "pyproject";
|
|
|
|
|
2021-11-10 13:05:52 +01:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
2021-02-07 22:39:46 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bachya";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-11-10 13:05:52 +01:00
|
|
|
sha256 = "sha256-cLutszJ8VXGcqb8kZv7Qn1ZD/LRYjVgQWQxNMHNd0UQ=";
|
2021-02-07 22:39:46 +01:00
|
|
|
};
|
|
|
|
|
2021-04-29 09:54:32 +02:00
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
2021-02-07 22:39:46 +01:00
|
|
|
|
2021-04-29 09:54:32 +02:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
];
|
2021-02-07 22:39:46 +01:00
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
aresponses
|
|
|
|
freezegun
|
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2021-11-10 13:05:52 +01:00
|
|
|
disabledTestPaths = [
|
|
|
|
# Ignore the examples directory as the files are prefixed with test_.
|
|
|
|
"examples/"
|
|
|
|
];
|
2021-04-29 09:54:32 +02:00
|
|
|
|
2021-11-10 13:05:52 +01:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"aiorecollect"
|
|
|
|
];
|
2021-02-07 22:39:46 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|