Merge pull request #248497 from fabaff/mkdocs-autorefs-bump
python311Packages.mkdocs-autorefs: 0.4.1 -> 0.5.0
This commit is contained in:
commit
a788e4e1c2
1 changed files with 12 additions and 11 deletions
|
@ -4,26 +4,31 @@
|
||||||
, markdown
|
, markdown
|
||||||
, mkdocs
|
, mkdocs
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, pdm-pep517
|
, pdm-backend
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "mkdocs-autorefs";
|
pname = "mkdocs-autorefs";
|
||||||
version = "0.4.1";
|
version = "0.5.0";
|
||||||
format = "pyproject";
|
format = "pyproject";
|
||||||
|
|
||||||
disabled = pythonOlder "3.7";
|
disabled = pythonOlder "3.8";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "mkdocstrings";
|
owner = "mkdocstrings";
|
||||||
repo = "autorefs";
|
repo = "autorefs";
|
||||||
rev = version;
|
rev = "refs/tags/${version}";
|
||||||
hash = "sha256-kiHb/XSFw6yaUbLJHBvHaQAOVUM6UfyFeomgniDZqgU=";
|
hash = "sha256-GZKQlOXhQIQhS/z4cbmS6fhAKYgnVhSXh5a8Od7+TWc=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace pyproject.toml \
|
||||||
|
--replace 'dynamic = ["version"]' 'version = "${version}"'
|
||||||
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
pdm-pep517
|
pdm-backend
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
|
@ -35,11 +40,6 @@ buildPythonPackage rec {
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
|
||||||
substituteInPlace pyproject.toml \
|
|
||||||
--replace 'dynamic = ["version"]' 'version = "${version}"'
|
|
||||||
'';
|
|
||||||
|
|
||||||
pythonImportsCheck = [
|
pythonImportsCheck = [
|
||||||
"mkdocs_autorefs"
|
"mkdocs_autorefs"
|
||||||
];
|
];
|
||||||
|
@ -47,6 +47,7 @@ buildPythonPackage rec {
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Automatically link across pages in MkDocs";
|
description = "Automatically link across pages in MkDocs";
|
||||||
homepage = "https://github.com/mkdocstrings/autorefs/";
|
homepage = "https://github.com/mkdocstrings/autorefs/";
|
||||||
|
changelog = "https://github.com/mkdocstrings/autorefs/blob/${version}/CHANGELOG.md";
|
||||||
license = licenses.isc;
|
license = licenses.isc;
|
||||||
maintainers = with maintainers; [ fab ];
|
maintainers = with maintainers; [ fab ];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue