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

python314Packages.pymodbus: migrate to finalAttrs

parent 8e15077c
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -19,7 +19,7 @@
  typer,
}:

buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
  pname = "pymodbus";
  version = "3.12.0";
  pyproject = true;
@@ -27,7 +27,7 @@ buildPythonPackage rec {
  src = fetchFromGitHub {
    owner = "pymodbus-dev";
    repo = "pymodbus";
    tag = "v${version}";
    tag = "v${finalAttrs.version}";
    hash = "sha256-wyelHxfzmoyqp+D6v4EqJK8fL4FOuYrV57xZROGuIsY=";
  };

@@ -50,7 +50,7 @@ buildPythonPackage rec {
    sqlalchemy
    twisted
  ]
  ++ lib.concatAttrValues optional-dependencies;
  ++ lib.flatten (builtins.attrValues finalAttrs.passthru.optional-dependencies);

  preCheck = ''
    pushd test
@@ -86,9 +86,9 @@ buildPythonPackage rec {
      lightweight project is needed.
    '';
    homepage = "https://github.com/pymodbus-dev/pymodbus";
    changelog = "https://github.com/pymodbus-dev/pymodbus/releases/tag/${src.tag}";
    changelog = "https://github.com/pymodbus-dev/pymodbus/releases/tag/${finalAttrs.src.tag}";
    license = lib.licenses.bsd3;
    maintainers = with lib.maintainers; [ fab ];
    mainProgram = "pymodbus.simulator";
  };
}
})