567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
70 lines
1.4 KiB
Nix
70 lines
1.4 KiB
Nix
{
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
lib,
|
|
click,
|
|
essentials-openapi,
|
|
flask,
|
|
hatchling,
|
|
httpx,
|
|
jinja2,
|
|
mkdocs,
|
|
pytestCheckHook,
|
|
rich,
|
|
setuptools,
|
|
stdenv,
|
|
}:
|
|
buildPythonPackage rec {
|
|
pname = "neoteroi-mkdocs";
|
|
version = "1.2.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Neoteroi";
|
|
repo = "mkdocs-plugins";
|
|
tag = "v${version}";
|
|
hash = "sha256-l5jJCmsBns1bGv+yBA0R6TDlfQuweFr92kNnQalWB7k=";
|
|
};
|
|
|
|
buildInputs = [ hatchling ];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
flask
|
|
setuptools
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
essentials-openapi
|
|
click
|
|
jinja2
|
|
httpx
|
|
mkdocs
|
|
rich
|
|
];
|
|
|
|
disabledTests = [
|
|
"test_contribs" # checks against its own git repository
|
|
];
|
|
|
|
pythonImportsCheck = [ "neoteroi.mkdocs" ];
|
|
|
|
disabledTestPaths = lib.optionals stdenv.hostPlatform.isDarwin [
|
|
# These tests start a server using a hardcoded port, and since
|
|
# multiple Python versions are always built simultaneously, this
|
|
# failure is quite likely to occur.
|
|
"tests/test_http.py"
|
|
];
|
|
|
|
meta = {
|
|
homepage = "https://github.com/Neoteroi/mkdocs-plugins";
|
|
description = "Plugins for MkDocs";
|
|
changelog = "https://github.com/Neoteroi/mkdocs-plugins/releases/${src.tag}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [
|
|
aldoborrero
|
|
zimbatm
|
|
];
|
|
};
|
|
}
|