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

python3Packages.withings-sync: migrate to finalAttrs

parent 707a0363
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -10,7 +10,7 @@
  requests,
}:

buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
  pname = "withings-sync";
  version = "5.3.2";
  pyproject = true;
@@ -18,13 +18,13 @@ buildPythonPackage rec {
  src = fetchFromGitHub {
    owner = "jaroslawhartman";
    repo = "withings-sync";
    tag = "v${version}";
    tag = "v${finalAttrs.version}";
    hash = "sha256-1pDM5paSXPQCOG5LRFxnp19K1iHcsfrGC9e7SEyxUDs=";
  };

  postPatch = ''
    substituteInPlace pyproject.toml \
      --replace-fail "1.0.0.dev1" "${version}"
      --replace-fail "1.0.0.dev1" "${finalAttrs.version}"
  '';

  build-system = [ poetry-core ];
@@ -42,9 +42,9 @@ buildPythonPackage rec {
  meta = {
    description = "Synchronisation of Withings weight";
    homepage = "https://github.com/jaroslawhartman/withings-sync";
    changelog = "https://github.com/jaroslawhartman/withings-sync/releases/tag/${src.tag}";
    changelog = "https://github.com/jaroslawhartman/withings-sync/releases/tag/${finalAttrs.src.tag}";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ fab ];
    mainProgram = "withings-sync";
  };
}
})