mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
Diff: https://github.com/hacf-fr/renault-api/compare/v0.5.8...v0.5.10 Changelog: https://github.com/hacf-fr/renault-api/releases/tag/v0.5.10
68 lines
1.3 KiB
Nix
68 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
aiohttp,
|
|
aioresponses,
|
|
buildPythonPackage,
|
|
click,
|
|
cryptography,
|
|
dateparser,
|
|
fetchFromGitHub,
|
|
marshmallow-dataclass,
|
|
poetry-core,
|
|
pyjwt,
|
|
pytest-asyncio,
|
|
pytestCheckHook,
|
|
syrupy,
|
|
tabulate,
|
|
typeguard,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "renault-api";
|
|
version = "0.5.10";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "hacf-fr";
|
|
repo = "renault-api";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-1ym2xDJo8Ax76jC7rvVYI+EADKkdjGiKKvtiyE/rk/4=";
|
|
};
|
|
|
|
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 (builtins.attrValues finalAttrs.passthru.optional-dependencies);
|
|
|
|
pythonImportsCheck = [ "renault_api" ];
|
|
|
|
meta = {
|
|
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/${finalAttrs.src.tag}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
mainProgram = "renault-api";
|
|
};
|
|
})
|