Merge pull request #212386 from fabaff/mkdocstrings-bump

python310Packages.mkdocstrings: 0.19.1 -> 0.20.0
This commit is contained in:
Fabian Affolter 2023-01-24 13:41:57 +01:00 committed by GitHub
commit 21b0cdbc2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,7 +14,7 @@
buildPythonPackage rec {
pname = "mkdocstrings";
version = "0.19.1";
version = "0.20.0";
format = "pyproject";
disabled = pythonOlder "3.7";
@ -22,10 +22,16 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "mkdocstrings";
repo = pname;
rev = version;
sha256 = "sha256-VCWUV+3vXmKbAXImAqY/K4vsA64gHBg83VkxbJua/ao=";
rev = "refs/tags/${version}";
hash = "sha256-eFHcwbYEIwVWvDJWlmeUvEdqp3NYAF8SgdHJGw6bEMc=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace 'dynamic = ["version"]' 'version = "${version}"' \
--replace 'license = "ISC"' 'license = {text = "ISC"}'
'';
nativeBuildInputs = [
pdm-pep517
];
@ -43,12 +49,6 @@ buildPythonPackage rec {
pytestCheckHook
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace 'dynamic = ["version"]' 'version = "${version}"' \
--replace 'license = "ISC"' 'license = {text = "ISC"}'
'';
pythonImportsCheck = [
"mkdocstrings"
];
@ -58,6 +58,11 @@ buildPythonPackage rec {
"tests/test_extension.py"
];
disabledTests = [
# Not all requirements are available
"test_disabling_plugin"
];
meta = with lib; {
description = "Automatic documentation from sources for MkDocs";
homepage = "https://github.com/mkdocstrings/mkdocstrings";