2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
httpx,
|
|
|
|
orjson,
|
|
|
|
poetry-core,
|
|
|
|
pytest-asyncio,
|
2024-09-19 14:19:46 +00:00
|
|
|
pytest-cov-stub,
|
2024-05-15 15:35:15 +00:00
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
respx,
|
|
|
|
rich,
|
|
|
|
syrupy,
|
|
|
|
tenacity,
|
|
|
|
typer,
|
2023-11-16 04:20:00 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytrydan";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "0.8.1";
|
2023-11-16 04:20:00 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.10";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dgomes";
|
|
|
|
repo = "pytrydan";
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-OHC+Ul64BYCsgoFDxI1hPjBGkd/pQ0j0c9Pt5lWg1E0=";
|
2023-11-16 04:20:00 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
pythonRelaxDeps = [ "tenacity" ];
|
2023-11-16 04:20:00 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
build-system = [ poetry-core ];
|
2023-11-16 04:20:00 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
dependencies = [
|
2023-11-16 04:20:00 +00:00
|
|
|
httpx
|
|
|
|
orjson
|
|
|
|
rich
|
|
|
|
tenacity
|
|
|
|
typer
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
pytest-asyncio
|
2024-09-19 14:19:46 +00:00
|
|
|
pytest-cov-stub
|
2023-11-16 04:20:00 +00:00
|
|
|
pytestCheckHook
|
|
|
|
respx
|
|
|
|
syrupy
|
|
|
|
];
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
pythonImportsCheck = [ "pytrydan" ];
|
2023-11-16 04:20:00 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Library to interface with V2C EVSE Trydan";
|
|
|
|
homepage = "https://github.com/dgomes/pytrydan";
|
|
|
|
changelog = "https://github.com/dgomes/pytrydan/blob/${version}/CHANGELOG.md";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
2024-05-15 15:35:15 +00:00
|
|
|
mainProgram = "pytrydan";
|
2023-11-16 04:20:00 +00:00
|
|
|
};
|
|
|
|
}
|