Commit 8d05f6fe authored by Robert Schütz's avatar Robert Schütz
Browse files

python3Packages.victron-vrm: init at 0.1.8

parent 97c18ba6
Loading
Loading
Loading
Loading
+50 −0
Original line number Diff line number Diff line
{
  aiohttp,
  buildPythonPackage,
  fetchFromGitHub,
  hatchling,
  lib,
  pydantic,
  pytest-asyncio,
  pytestCheckHook,
  pytz,
}:

buildPythonPackage rec {
  pname = "victron-vrm";
  version = "0.1.8";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "KSoft-Si";
    repo = "vrm-client";
    tag = "v${version}";
    hash = "sha256-NxkMUwiFD8C7Nrtd7cjoFvdkbAOJkIIt+TPtkous8Nc=";
  };

  build-system = [ hatchling ];

  dependencies = [
    aiohttp
    pydantic
    pytz
  ];

  pythonImportsCheck = [ "victron_vrm" ];

  nativeCheckInputs = [
    pytest-asyncio
    pytestCheckHook
  ];

  # tests connect to vrmapi.victronenergy.com
  doCheck = false;

  meta = {
    changelog = "https://github.com/KSoft-Si/vrm-client/releases/tag/${src.tag}";
    description = "Async Python client for the Victron Energy VRM API";
    homepage = "https://github.com/KSoft-Si/vrm-client";
    license = lib.licenses.mit;
    maintainers = [ lib.maintainers.dotlambda ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -19799,6 +19799,8 @@ self: super: with self; {
  vharfbuzz = callPackage ../development/python-modules/vharfbuzz { };
  victron-vrm = callPackage ../development/python-modules/victron-vrm { };
  videocr = callPackage ../development/python-modules/videocr { };
  vidstab = callPackage ../development/python-modules/vidstab { };