summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/sphinx-testing/default.nix
blob: ec2f2055e33322fac3ce44aa8c13f8253a8b8fc5 (plain)
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,
  fetchPypi,
  mock,
  sphinx,
  six,
  unittestCheckHook,
}:

buildPythonPackage rec {
  pname = "sphinx-testing";
  version = "1.0.1";
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    sha256 = "ef661775b5722d7b00f67fc229104317d35637a4fb4434bf2c005afdf1da4d09";
  };

  nativeCheckInputs = [
    unittestCheckHook
    mock
  ];
  propagatedBuildInputs = [
    sphinx
    six
  ];

  unittestFlagsArray = [
    "-s"
    "tests"
  ];

  # Test failures https://github.com/sphinx-doc/sphinx-testing/issues/5
  doCheck = false;

  meta = {
    homepage = "https://github.com/sphinx-doc/sphinx-testing";
    license = lib.licenses.bsd2;
    description = "Testing utility classes and functions for Sphinx extensions";
  };
}