1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 flit-core,
6 pytest,
7 sphinx,
8 defusedxml,
9 pytestCheckHook,
10}:
11
12buildPythonPackage rec {
13 pname = "sphinx-pytest";
14 version = "0.2.0";
15 pyproject = true;
16
17 src = fetchFromGitHub {
18 owner = "chrisjsewell";
19 repo = "sphinx-pytest";
20 tag = "v${version}";
21 hash = "sha256-oSBBt+hSMs4mvGqibQHoYHXr2j/bpsGOnIMfwfTfWKQ=";
22 };
23
24 nativeBuildInputs = [ flit-core ];
25
26 propagatedBuildInputs = [ sphinx ];
27
28 buildInputs = [ pytest ];
29
30 pythonImportsCheck = [ "sphinx_pytest" ];
31
32 nativeCheckInputs = [
33 defusedxml
34 pytestCheckHook
35 ];
36
37 meta = with lib; {
38 changelog = "https://github.com/sphinx-extensions2/sphinx-pytest/releases/tag/v${version}";
39 description = "Helpful pytest fixtures for Sphinx extensions";
40 homepage = "https://github.com/chrisjsewell/sphinx-pytest";
41 license = licenses.mit;
42 maintainers = with maintainers; [ loicreynier ];
43 };
44}