python3Packages.mkdocs-simple-hooks: init at 0.1.5

This commit is contained in:
Arjan Schrijver 2023-03-23 22:22:36 +01:00
parent 568f71b9d4
commit 3dced15a96
2 changed files with 43 additions and 0 deletions

View file

@ -0,0 +1,42 @@
{ lib
, buildPythonPackage
, isPy3k
, fetchFromGitHub
, mkdocs
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "mkdocs-simple-hooks";
version = "0.1.5";
disabled = !isPy3k;
src = fetchFromGitHub {
owner = "aklajnert";
repo = "mkdocs-simple-hooks";
rev = "v${version}";
hash = "sha256-N6xZjCREjJlhR6f8m65WJswUQv/TTdTbk670+C46UWQ=";
};
propagatedBuildInputs = [
mkdocs
];
nativeCheckInputs = [ pytestCheckHook ];
pytestFlagsArray = [ "tests.py" ];
# disable failing tests
disabledTests = [
"test_no_hooks_defined"
"test_no_attribute"
];
meta = with lib; {
description = "Define your own hooks for mkdocs, without having to create a new package.";
homepage = "https://github.com/aklajnert/mkdocs-simple-hooks";
license = licenses.mit;
maintainers = with maintainers; [ arjan-s ];
};
}

View file

@ -6079,6 +6079,7 @@ self: super: with self; {
mkdocs-material-extensions = callPackage ../development/python-modules/mkdocs-material/mkdocs-material-extensions.nix { };
mkdocs-minify = callPackage ../development/python-modules/mkdocs-minify { };
mkdocs-redirects = callPackage ../development/python-modules/mkdocs-redirects { };
mkdocs-simple-hooks = callPackage ../development/python-modules/mkdocs-simple-hooks { };
mkdocs-swagger-ui-tag = callPackage ../development/python-modules/mkdocs-swagger-ui-tag { };
mkdocstrings = callPackage ../development/python-modules/mkdocstrings { };