Unverified Commit 372bb82a authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

Merge pull request #310516 from fabaff/pytrydan-bump

python312Packages.pytrydan: 0.4.0 -> 0.6.0
parents 90a9b060 66d3e3b8
Loading
Loading
Loading
Loading
+22 −25
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchFromGitHub
, httpx
, orjson
, poetry-core
, pytest-asyncio
, pytestCheckHook
, pythonOlder
, respx
, rich
, syrupy
, tenacity
, typer
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  httpx,
  orjson,
  poetry-core,
  pytest-asyncio,
  pytestCheckHook,
  pythonOlder,
  respx,
  rich,
  syrupy,
  tenacity,
  typer,
}:

buildPythonPackage rec {
  pname = "pytrydan";
  version = "0.4.0";
  version = "0.6.0";
  pyproject = true;

  disabled = pythonOlder "3.10";
@@ -25,19 +26,17 @@ buildPythonPackage rec {
    owner = "dgomes";
    repo = "pytrydan";
    rev = "refs/tags/v${version}";
    hash = "sha256-9PyRICtZ+0Ezinu28oFgFOSnOyCmD7zZbdc/chN+sCo=";
    hash = "sha256-+hFwBFYtRseVwesZtSrL3J/ZnsMAjD2ZAhTlk41hfqU=";
  };

  postPatch = ''
    substituteInPlace pyproject.toml \
      --replace " --cov=pytrydan --cov-report=term-missing:skip-covered" ""
      --replace-fail " --cov=pytrydan --cov-report=term-missing:skip-covered" ""
  '';

  nativeBuildInputs = [
    poetry-core
  ];
  build-system = [ poetry-core ];

  propagatedBuildInputs = [
  dependencies = [
    httpx
    orjson
    rich
@@ -52,16 +51,14 @@ buildPythonPackage rec {
    syrupy
  ];

  pythonImportsCheck = [
    "pytrydan"
  ];
  pythonImportsCheck = [ "pytrydan" ];

  meta = with lib; {
    description = "Library to interface with V2C EVSE Trydan";
    mainProgram = "pytrydan";
    homepage = "https://github.com/dgomes/pytrydan";
    changelog = "https://github.com/dgomes/pytrydan/blob/${version}/CHANGELOG.md";
    license = licenses.mit;
    maintainers = with maintainers; [ fab ];
    mainProgram = "pytrydan";
  };
}