Unverified Commit bc54cfb2 authored by Johannes Kirschbauer's avatar Johannes Kirschbauer Committed by GitHub
Browse files

python3Packages.{griffe,mkdocs-autorefs,mkdocstrings}: update (#403354)

parents b8e7f312 dafea017
Loading
Loading
Loading
Loading
+11 −13
Original line number Diff line number Diff line
@@ -6,32 +6,25 @@
  fetchFromGitHub,
  git,
  jsonschema,
  mkdocstrings,
  pdm-backend,
  pytestCheckHook,
  pythonOlder,
}:

buildPythonPackage rec {
  pname = "griffe";
  version = "1.6.0";
  version = "1.7.3";
  pyproject = true;

  disabled = pythonOlder "3.8";

  src = fetchFromGitHub {
    owner = "mkdocstrings";
    repo = "griffe";
    tag = version;
    hash = "sha256-Cs3qJlF1k1cKmbH7bXkn8+XDRC0sZqVdrMPIw0dSWD8=";
    hash = "sha256-H5bkS8NK96M2W+kH1KijmzVL5Y04KY9xc5Vw5l1lfws=";
  };

  build-system = [ pdm-backend ];

  dependencies = [
    colorama
    mkdocstrings
  ];
  dependencies = [ colorama ];

  nativeCheckInputs = [
    git
@@ -45,12 +38,17 @@ buildPythonPackage rec {

  pythonImportsCheck = [ "griffe" ];

  meta = with lib; {
  disabledTestPaths = [
    # Circular dependencies
    "tests/test_api.py"
  ];

  meta = {
    description = "Signatures for entire Python programs";
    homepage = "https://github.com/mkdocstrings/griffe";
    changelog = "https://github.com/mkdocstrings/griffe/blob/${src.tag}/CHANGELOG.md";
    license = licenses.isc;
    maintainers = with maintainers; [ fab ];
    license = lib.licenses.isc;
    maintainers = with lib.maintainers; [ fab ];
    mainProgram = "griffe";
  };
}
+10 −6
Original line number Diff line number Diff line
@@ -38,7 +38,7 @@

buildPythonPackage rec {
  pname = "llama-index-core";
  version = "0.12.35";
  version = "0.12.36";
  pyproject = true;

  disabled = pythonOlder "3.8";
@@ -47,7 +47,7 @@ buildPythonPackage rec {
    owner = "run-llama";
    repo = "llama_index";
    tag = "v${version}";
    hash = "sha256-qBLCuQjkUNER70wJiWH6pEN4D2J9L8emGQukdlWAAYU=";
    hash = "sha256-Wfugrzn/7Ihv3WQTNx09OaxeMG9sDk/ZVHQcZlKynRw=";
  };

  sourceRoot = "${src.name}/${pname}";
@@ -133,13 +133,17 @@ buildPythonPackage rec {

  disabledTests = [
    # Tests require network access
    "test_from_namespaced_persist_dir"
    "test_from_persist_dir"
    "test_context_extraction_basic"
    "test_context_extraction_oversized_document"
    "test_context_extraction_custom_prompt"
    "test_multiple_documents_context"
    "test_context_extraction_oversized_document"
    "test_document_block_from_b64"
    "test_document_block_from_bytes"
    "test_document_block_from_path"
    "test_document_block_from_url"
    "test_from_namespaced_persist_dir"
    "test_from_persist_dir"
    "test_mimetype_raw_data"
    "test_multiple_documents_context"
    # asyncio.exceptions.InvalidStateError: invalid state
    "test_workflow_context_to_dict_mid_run"
    "test_SimpleDirectoryReader"
+14 −10
Original line number Diff line number Diff line
@@ -3,24 +3,22 @@
  buildPythonPackage,
  fetchFromGitHub,
  markdown,
  mkdocs,
  mkdocs-material,
  pytestCheckHook,
  pdm-backend,
  pythonOlder,
  markupsafe,
}:

buildPythonPackage rec {
  pname = "mkdocs-autorefs";
  version = "1.3.1";
  version = "1.4.1";
  pyproject = true;

  disabled = pythonOlder "3.9";

  src = fetchFromGitHub {
    owner = "mkdocstrings";
    repo = "autorefs";
    tag = version;
    hash = "sha256-YVkj4D7JK0GOqnGlg5L3uqFsBB5C0OnlXX+wYW4GpkQ=";
    hash = "sha256-l8COGf4EWDvIQcrf8lQF/TROhp1uCb+mv0CDND3xiUg=";
  };

  postPatch = ''
@@ -32,11 +30,17 @@ buildPythonPackage rec {

  dependencies = [
    markdown
    mkdocs
    markupsafe
    mkdocs-material
  ];

  nativeCheckInputs = [ pytestCheckHook ];

  disabledTestPaths = [
    # Circular dependencies
    "tests/test_api.py"
  ];

  disabledTests = [
    # missing pymdownx
    "test_reference_implicit_with_code_inlinehilite_plain"
@@ -45,11 +49,11 @@ buildPythonPackage rec {

  pythonImportsCheck = [ "mkdocs_autorefs" ];

  meta = with lib; {
  meta = {
    description = "Automatically link across pages in MkDocs";
    homepage = "https://github.com/mkdocstrings/autorefs/";
    changelog = "https://github.com/mkdocstrings/autorefs/blob/${src.tag}/CHANGELOG.md";
    license = licenses.isc;
    maintainers = with maintainers; [ fab ];
    license = lib.licenses.isc;
    maintainers = with lib.maintainers; [ fab ];
  };
}
+5 −8
Original line number Diff line number Diff line
@@ -10,21 +10,18 @@
  mkdocstrings,
  pdm-backend,
  pytestCheckHook,
  pythonOlder,
}:

buildPythonPackage rec {
  pname = "mkdocstrings-python";
  version = "1.13.0";
  version = "1.16.10";
  pyproject = true;

  disabled = pythonOlder "3.8";

  src = fetchFromGitHub {
    owner = "mkdocstrings";
    repo = "python";
    tag = version;
    hash = "sha256-NgVCKV3AWk4pRT7/+6YGXmKSZETL4ZOWDWGeb/qjdng=";
    hash = "sha256-HwGo+o78SDo+RM2UxQB4A8OTY5FVuav1TS6J+aVVWdc=";
  };

  build-system = [ pdm-backend ];
@@ -51,11 +48,11 @@ buildPythonPackage rec {
    "test_format_code"
  ];

  meta = with lib; {
  meta = {
    description = "Python handler for mkdocstrings";
    homepage = "https://github.com/mkdocstrings/python";
    changelog = "https://github.com/mkdocstrings/python/blob/${version}/CHANGELOG.md";
    license = licenses.isc;
    maintainers = with maintainers; [ fab ];
    license = lib.licenses.isc;
    maintainers = with lib.maintainers; [ fab ];
  };
}
+12 −10
Original line number Diff line number Diff line
@@ -12,21 +12,19 @@
  pymdown-extensions,
  pytestCheckHook,
  pythonOlder,
  typing-extensions,
  dirty-equals,
}:

buildPythonPackage rec {
  pname = "mkdocstrings";
  version = "0.27.0";
  version = "0.29.1";
  pyproject = true;

  disabled = pythonOlder "3.9";

  src = fetchFromGitHub {
    owner = "mkdocstrings";
    repo = "mkdocstrings";
    tag = version;
    hash = "sha256-L86aFq1S7Hfp+1MHwliCSz0mfgAFD/5AHbeqL1aZ5XM=";
    hash = "sha256-i3rGPKptsFD/IE4vGpWC0HTKoqAtjQ6gkVhZbfYn2bo=";
  };

  postPatch = ''
@@ -47,15 +45,18 @@ buildPythonPackage rec {
    ]
    ++ lib.optionals (pythonOlder "3.10") [
      importlib-metadata
      typing-extensions
    ];

  nativeCheckInputs = [ pytestCheckHook ];
  nativeCheckInputs = [
    pytestCheckHook
    dirty-equals
  ];

  pythonImportsCheck = [ "mkdocstrings" ];

  disabledTestPaths = [
    # Circular dependencies
    "tests/test_api.py"
    "tests/test_extension.py"
  ];

@@ -64,13 +65,14 @@ buildPythonPackage rec {
    "test_disabling_plugin"
    # Circular dependency on mkdocstrings-python
    "test_extended_templates"
    "test_nested_autodoc[ext_markdown0]"
  ];

  meta = with lib; {
  meta = {
    description = "Automatic documentation from sources for MkDocs";
    homepage = "https://github.com/mkdocstrings/mkdocstrings";
    changelog = "https://github.com/mkdocstrings/mkdocstrings/blob/${version}/CHANGELOG.md";
    license = licenses.isc;
    maintainers = with maintainers; [ fab ];
    license = lib.licenses.isc;
    maintainers = with lib.maintainers; [ fab ];
  };
}