Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / mkdocs-simple-hooks / default.nix
blobc623207d1dd826a7ee9ed5bfda4add0f16f7a252
1 { lib
2 , buildPythonPackage
3 , isPy3k
4 , fetchFromGitHub
5 , mkdocs
6 , pytestCheckHook
7 }:
9 buildPythonPackage rec {
10   pname = "mkdocs-simple-hooks";
11   version = "0.1.5";
12   format = "setuptools";
14   disabled = !isPy3k;
16   src = fetchFromGitHub {
17     owner = "aklajnert";
18     repo = "mkdocs-simple-hooks";
19     rev = "v${version}";
20     hash = "sha256-N6xZjCREjJlhR6f8m65WJswUQv/TTdTbk670+C46UWQ=";
21   };
23   propagatedBuildInputs = [
24     mkdocs
25   ];
27   nativeCheckInputs = [ pytestCheckHook ];
29   pytestFlagsArray = [ "tests.py" ];
31   # disable failing tests
32   disabledTests = [
33     "test_no_hooks_defined"
34     "test_no_attribute"
35   ];
37   meta = with lib; {
38     description = "Define your own hooks for mkdocs, without having to create a new package.";
39     homepage = "https://github.com/aklajnert/mkdocs-simple-hooks";
40     license = licenses.mit;
41     maintainers = with maintainers; [ arjan-s ];
42   };