1{
2 lib,
3 buildPythonPackage,
4 pythonOlder,
5 fetchFromGitHub,
6 poetry-core,
7 markdown-it-py,
8 pytest,
9 pytestCheckHook,
10}:
11
12buildPythonPackage rec {
13 pname = "pytest-markdown-docs";
14 version = "0.5.1";
15 pyproject = true;
16
17 disabled = pythonOlder "3.8";
18
19 src = fetchFromGitHub {
20 owner = "modal-com";
21 repo = "pytest-markdown-docs";
22 tag = "v${version}";
23 hash = "sha256-mclN28tfPcoFxswECjbrkeOI51XXSqUXfbvuSHrd7Sw=";
24 };
25
26 build-system = [ poetry-core ];
27
28 dependencies = [
29 markdown-it-py
30 pytest
31 ];
32
33 pythonImportsCheck = [ "pytest_markdown_docs" ];
34
35 nativeCheckInputs = [ pytestCheckHook ];
36
37 meta = with lib; {
38 description = "Run pytest on markdown code fence blocks";
39 homepage = "https://github.com/modal-com/pytest-markdown-docs";
40 license = licenses.mit;
41 maintainers = with maintainers; [ GaetanLepage ];
42 };
43}