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

python313Packages.mkdocstrings: migrate to finalAttrs

parent 0955da9a
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -13,7 +13,7 @@
  dirty-equals,
}:

buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
  pname = "mkdocstrings";
  version = "1.0.2";
  pyproject = true;
@@ -21,13 +21,13 @@ buildPythonPackage rec {
  src = fetchFromGitHub {
    owner = "mkdocstrings";
    repo = "mkdocstrings";
    tag = version;
    tag = finalAttrs.version;
    hash = "sha256-fdWHcg6WijOXsE6+03iPRineUHtMDU/Yfra3S9lkMWs=";
  };

  postPatch = ''
    substituteInPlace pyproject.toml \
      --replace-fail 'dynamic = ["version"]' 'version = "${version}"'
      --replace-fail 'dynamic = ["version"]' 'version = "${finalAttrs.version}"'
  '';

  build-system = [ pdm-backend ];
@@ -65,8 +65,8 @@ buildPythonPackage rec {
  meta = {
    description = "Automatic documentation from sources for MkDocs";
    homepage = "https://github.com/mkdocstrings/mkdocstrings";
    changelog = "https://github.com/mkdocstrings/mkdocstrings/blob/${src.tag}/CHANGELOG.md";
    changelog = "https://github.com/mkdocstrings/mkdocstrings/blob/${finalAttrs.src.tag}/CHANGELOG.md";
    license = lib.licenses.isc;
    maintainers = with lib.maintainers; [ fab ];
  };
}
})