about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/mkdocs-simple-hooks/default.nix
blob: c403baebbae3702e316ef13fe30ba9551815e43b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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 ];
  };
}