about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pytest-markdown-docs/default.nix
blob: d09187cafa59af2fe8034b77f98ff9ddd48724b2 (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
43
{
  lib,
  buildPythonPackage,
  pythonOlder,
  fetchFromGitHub,
  poetry-core,
  markdown-it-py,
  pytest,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "pytest-markdown-docs";
  version = "0.5.1";
  pyproject = true;

  disabled = pythonOlder "3.8";

  src = fetchFromGitHub {
    owner = "modal-com";
    repo = "pytest-markdown-docs";
    rev = "refs/tags/v${version}";
    hash = "sha256-mclN28tfPcoFxswECjbrkeOI51XXSqUXfbvuSHrd7Sw=";
  };

  build-system = [ poetry-core ];

  dependencies = [
    markdown-it-py
    pytest
  ];

  pythonImportsCheck = [ "pytest_markdown_docs" ];

  nativeCheckInputs = [ pytestCheckHook ];

  meta = with lib; {
    description = "Run pytest on markdown code fence blocks";
    homepage = "https://github.com/modal-com/pytest-markdown-docs";
    license = licenses.mit;
    maintainers = with maintainers; [ GaetanLepage ];
  };
}