567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
75 lines
1.4 KiB
Nix
75 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
aiohttp,
|
|
aresponses,
|
|
buildPythonPackage,
|
|
certifi,
|
|
fetchFromGitHub,
|
|
freezegun,
|
|
poetry-core,
|
|
pyjwt,
|
|
pytest-aiohttp,
|
|
pytest-asyncio,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
pytz,
|
|
titlecase,
|
|
types-pytz,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aioridwell";
|
|
version = "2025.09.0";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bachya";
|
|
repo = "aioridwell";
|
|
tag = version;
|
|
hash = "sha256-lZ4Hmf1OruKTUMkpPYhqkqj+j+yeckXynjxa1oOtXzc=";
|
|
};
|
|
|
|
nativeBuildInputs = [ poetry-core ];
|
|
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
certifi
|
|
pyjwt
|
|
pytz
|
|
titlecase
|
|
];
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
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 = {
|
|
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 lib.licenses; [ mit ];
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
}
|