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

This commit is contained in:
Fabian Affolter
2025-01-07 12:26:04 +01:00
committed by GitHub
3 changed files with 42 additions and 14 deletions
@@ -1,15 +1,16 @@
{
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";
@@ -1,8 +1,11 @@
{
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; {
@@ -1,9 +1,12 @@
{
lib,
buildPythonPackage,
django,
fetchFromGitHub,
poetry-core,
netaddr,
netbox,
poetry-core,
pythonOlder,
}:
buildPythonPackage rec {
@@ -11,20 +14,30 @@ 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 ];
dependencies = [
django
netaddr
];
nativeCheckInputs = [
netbox
];
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 ];
};