1{ lib
2, buildPythonPackage
3, isPy3k
4, fetchFromGitHub
5, mkdocs
6, pytestCheckHook
7}:
8
9buildPythonPackage rec {
10 pname = "mkdocs-simple-hooks";
11 version = "0.1.5";
12
13 disabled = !isPy3k;
14
15 src = fetchFromGitHub {
16 owner = "aklajnert";
17 repo = "mkdocs-simple-hooks";
18 rev = "v${version}";
19 hash = "sha256-N6xZjCREjJlhR6f8m65WJswUQv/TTdTbk670+C46UWQ=";
20 };
21
22 propagatedBuildInputs = [
23 mkdocs
24 ];
25
26 nativeCheckInputs = [ pytestCheckHook ];
27
28 pytestFlagsArray = [ "tests.py" ];
29
30 # disable failing tests
31 disabledTests = [
32 "test_no_hooks_defined"
33 "test_no_attribute"
34 ];
35
36 meta = with lib; {
37 description = "Define your own hooks for mkdocs, without having to create a new package.";
38 homepage = "https://github.com/aklajnert/mkdocs-simple-hooks";
39 license = licenses.mit;
40 maintainers = with maintainers; [ arjan-s ];
41 };
42}