Merge pull request #248497 from fabaff/mkdocs-autorefs-bump

python311Packages.mkdocs-autorefs: 0.4.1 -> 0.5.0
This commit is contained in:
Fabian Affolter 2023-08-11 18:03:09 +02:00 committed by GitHub
commit a788e4e1c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,26 +4,31 @@
, markdown
, mkdocs
, pytestCheckHook
, pdm-pep517
, pdm-backend
, pythonOlder
}:
buildPythonPackage rec {
pname = "mkdocs-autorefs";
version = "0.4.1";
version = "0.5.0";
format = "pyproject";
disabled = pythonOlder "3.7";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "mkdocstrings";
repo = "autorefs";
rev = version;
hash = "sha256-kiHb/XSFw6yaUbLJHBvHaQAOVUM6UfyFeomgniDZqgU=";
rev = "refs/tags/${version}";
hash = "sha256-GZKQlOXhQIQhS/z4cbmS6fhAKYgnVhSXh5a8Od7+TWc=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace 'dynamic = ["version"]' 'version = "${version}"'
'';
nativeBuildInputs = [
pdm-pep517
pdm-backend
];
propagatedBuildInputs = [
@ -35,11 +40,6 @@ buildPythonPackage rec {
pytestCheckHook
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace 'dynamic = ["version"]' 'version = "${version}"'
'';
pythonImportsCheck = [
"mkdocs_autorefs"
];
@ -47,6 +47,7 @@ buildPythonPackage rec {
meta = with lib; {
description = "Automatically link across pages in MkDocs";
homepage = "https://github.com/mkdocstrings/autorefs/";
changelog = "https://github.com/mkdocstrings/autorefs/blob/${version}/CHANGELOG.md";
license = licenses.isc;
maintainers = with maintainers; [ fab ];
};