2024-04-21 15:54:59 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
aiohttp,
|
|
|
|
aioresponses,
|
|
|
|
buildPythonPackage,
|
|
|
|
click,
|
|
|
|
cryptography,
|
|
|
|
dateparser,
|
|
|
|
fetchFromGitHub,
|
|
|
|
marshmallow-dataclass,
|
|
|
|
poetry-core,
|
|
|
|
pyjwt,
|
|
|
|
pythonOlder,
|
|
|
|
pytest-asyncio,
|
|
|
|
pytestCheckHook,
|
|
|
|
tabulate,
|
|
|
|
typeguard,
|
2021-09-26 12:46:18 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "renault-api";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "0.2.3";
|
|
|
|
pyproject = true;
|
2021-09-26 12:46:18 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hacf-fr";
|
2024-04-21 15:54:59 +00:00
|
|
|
repo = "renault-api";
|
2023-02-16 17:41:37 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-06-20 14:57:18 +00:00
|
|
|
hash = "sha256-+QqiD4mMfzlHmSiriaS0JzbMdOGCG7cg/xv6zJaPSOU=";
|
2021-09-26 12:46:18 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
build-system = [ poetry-core ];
|
2021-09-26 12:46:18 +00:00
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
dependencies = [
|
2021-09-26 12:46:18 +00:00
|
|
|
aiohttp
|
2024-04-21 15:54:59 +00:00
|
|
|
cryptography
|
2021-09-26 12:46:18 +00:00
|
|
|
marshmallow-dataclass
|
|
|
|
pyjwt
|
|
|
|
];
|
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
optional-dependencies = {
|
2024-04-21 15:54:59 +00:00
|
|
|
cli = [
|
|
|
|
click
|
|
|
|
dateparser
|
|
|
|
tabulate
|
|
|
|
];
|
|
|
|
};
|
2022-08-12 12:06:08 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
nativeCheckInputs = [
|
2024-06-20 14:57:18 +00:00
|
|
|
aioresponses
|
|
|
|
pytest-asyncio
|
2024-04-21 15:54:59 +00:00
|
|
|
pytestCheckHook
|
|
|
|
typeguard
|
2024-06-20 14:57:18 +00:00
|
|
|
] ++ lib.flatten (lib.attrValues optional-dependencies);
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "renault_api" ];
|
2021-09-26 12:46:18 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python library to interact with the Renault API";
|
|
|
|
homepage = "https://github.com/hacf-fr/renault-api";
|
2023-02-16 17:41:37 +00:00
|
|
|
changelog = "https://github.com/hacf-fr/renault-api/releases/tag/v${version}";
|
2021-09-26 12:46:18 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "renault-api";
|
2021-09-26 12:46:18 +00:00
|
|
|
};
|
|
|
|
}
|