
Diff: https://github.com/hacf-fr/renault-api/compare/refs/tags/v0.3.1...refs/tags/v0.4.0 Changelog: https://github.com/hacf-fr/renault-api/releases/tag/v0.4.0
72 lines
1.3 KiB
Nix
72 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
aiohttp,
|
|
aioresponses,
|
|
buildPythonPackage,
|
|
click,
|
|
cryptography,
|
|
dateparser,
|
|
fetchFromGitHub,
|
|
marshmallow-dataclass,
|
|
poetry-core,
|
|
pyjwt,
|
|
pythonOlder,
|
|
pytest-asyncio,
|
|
pytestCheckHook,
|
|
syrupy,
|
|
tabulate,
|
|
typeguard,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "renault-api";
|
|
version = "0.4.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "hacf-fr";
|
|
repo = "renault-api";
|
|
tag = "v${version}";
|
|
hash = "sha256-ynHtQN5bE8+Z7ey/UdOJ9Z1cA+cVbSc8QyvTgLYvwY4=";
|
|
};
|
|
|
|
build-system = [ poetry-core ];
|
|
|
|
dependencies = [
|
|
aiohttp
|
|
cryptography
|
|
marshmallow-dataclass
|
|
pyjwt
|
|
];
|
|
|
|
optional-dependencies = {
|
|
cli = [
|
|
click
|
|
dateparser
|
|
tabulate
|
|
];
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
aioresponses
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
syrupy
|
|
typeguard
|
|
]
|
|
++ lib.flatten (lib.attrValues optional-dependencies);
|
|
|
|
pythonImportsCheck = [ "renault_api" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python library to interact with the Renault API";
|
|
homepage = "https://github.com/hacf-fr/renault-api";
|
|
changelog = "https://github.com/hacf-fr/renault-api/releases/tag/v${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fab ];
|
|
mainProgram = "renault-api";
|
|
};
|
|
}
|