summary refs log tree commit diff
path: root/pkgs/development/python-modules/sphinx-pytest/default.nix
blob: ecb2cbf55e777cecbbb182f9f037c134b1969057 (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
44
45
{ lib
, buildPythonPackage
, fetchFromGitHub
, flit-core
, pytest
, sphinx
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "sphinx-pytest";
  version = "0.0.3";

  src = fetchFromGitHub {
    owner = "chrisjsewell";
    repo = pname;
    rev = "v${version}";
    hash = "sha256-vRHPq6BAuhn5QvHG2BGen9v6ezA3RgFVtustsNxU+n8=";
  };

  format = "pyproject";

  nativeBuildInputs = [ flit-core ];

  propagatedBuildInputs = [
    sphinx
  ];

  buildInputs = [
    pytest
  ];

  pythonImportsCheck = [ "sphinx_pytest" ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  meta = with lib; {
    description = "Helpful pytest fixtures for Sphinx extensions";
    homepage = "https://github.com/chrisjsewell/sphinx-pytest";
    license = licenses.mit;
    maintainers = with maintainers; [ loicreynier ];
  };
}