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

python312Packages.mkdocstrings-python: 1.12.2 -> 1.13.0 (#370989)

parents 2abc3278 f6d84474
Loading
Loading
Loading
Loading
+10 −4
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  django,
  djangorestframework,
  fetchFromGitHub,
  filetype,
  pillow,
  psycopg2,
  pytestCheckHook,
  pytest-django,
  pytestCheckHook,
  pythonAtLeast,
  setuptools,
}:

buildPythonPackage rec {
@@ -20,7 +21,7 @@ buildPythonPackage rec {
  src = fetchFromGitHub {
    owner = "hipo";
    repo = "drf-extra-fields";
    rev = "v${version}";
    tag = "v${version}";
    hash = "sha256-Ym4vnZ/t0ZdSxU53BC0ducJl1YiTygRSWql/35PNbOU";
  };

@@ -45,6 +46,11 @@ buildPythonPackage rec {

  pythonImportsCheck = [ "drf_extra_fields" ];

  disabledTests = lib.optionals (pythonAtLeast "3.13") [
    # https://github.com/Hipo/drf-extra-fields/issues/210
    "test_read_source_with_context"
  ];

  meta = {
    description = "Extra Fields for Django Rest Framework";
    homepage = "https://github.com/Hipo/drf-extra-fields";
+10 −2
Original line number Diff line number Diff line
{
  lib,
  beautifulsoup4,
  buildPythonPackage,
  fetchFromGitHub,
  griffe,
  inline-snapshot,
  mkdocs-autorefs,
  mkdocs-material,
  mkdocstrings,
  pdm-backend,
@@ -12,7 +15,7 @@

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

  disabled = pythonOlder "3.8";
@@ -21,17 +24,20 @@ buildPythonPackage rec {
    owner = "mkdocstrings";
    repo = "python";
    tag = version;
    hash = "sha256-dc9RXbrwZS/7eAF0BrGS2kJxG62rB5RLxf3yNZ6+g4Q=";
    hash = "sha256-NgVCKV3AWk4pRT7/+6YGXmKSZETL4ZOWDWGeb/qjdng=";
  };

  build-system = [ pdm-backend ];

  dependencies = [
    griffe
    mkdocs-autorefs
    mkdocstrings
  ];

  nativeCheckInputs = [
    beautifulsoup4
    inline-snapshot
    mkdocs-material
    pytestCheckHook
  ];
@@ -41,6 +47,8 @@ buildPythonPackage rec {
  disabledTests = [
    # Tests fails with AssertionError
    "test_windows_root_conversion"
    # TypeError
    "test_format_code"
  ];

  meta = with lib; {
+22 −8
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  django,
  fetchFromGitHub,
  poetry-core,
  netaddr,
  netbox,
  poetry-core,
  pythonOlder,
}:

buildPythonPackage rec {
@@ -11,21 +14,31 @@ buildPythonPackage rec {
  version = "1.1.1";
  pyproject = true;

  disabled = pythonOlder "3.8";

  src = fetchFromGitHub {
    owner = "FlxPeters";
    repo = "netbox-plugin-prometheus-sd";
    rev = "v${version}";
    tag = "v${version}";
    hash = "sha256-UtvSkqs2PN3uxCB78hJjh0lZ1WbZGjDpwlKyeAGpiEM=";
  };

  nativeBuildInputs = [
    poetry-core
  ];
  postPatch = ''
    substituteInPlace pyproject.toml \
      --replace-fail 'version = "0.0.0"' 'version = "${version}"'
    substituteInPlace netbox_prometheus_sd/__init__.py \
      --replace-fail "from extras.plugins import PluginConfig" "from netbox.plugins import PluginConfig"
  '';

  build-system = [ poetry-core ];

  nativeCheckInputs = [
    netbox
  dependencies = [
    django
    netaddr
  ];

  nativeCheckInputs = [ netbox ];

  preFixup = ''
    export PYTHONPATH=${netbox}/opt/netbox/netbox:$PYTHONPATH
  '';
@@ -34,7 +47,8 @@ buildPythonPackage rec {

  meta = with lib; {
    description = "Netbox plugin to provide Netbox entires to Prometheus HTTP service discovery";
    homepage = "https://pypi.org/project/netbox-plugin-prometheus-sd/";
    homepage = "https://github.com/FlxPeters/netbox-plugin-prometheus-sd";
    changelog = "https://github.com/FlxPeters/netbox-plugin-prometheus-sd/releases/tag/v${version}";
    license = licenses.mit;
    maintainers = with maintainers; [ xanderio ];
  };