1{ lib
2, buildPythonPackage
3, fetchPypi
4, mock
5, sphinx
6, six
7, python
8}:
9
10buildPythonPackage rec {
11 pname = "sphinx-testing";
12 version = "1.0.1";
13
14 src = fetchPypi {
15 inherit pname version;
16 sha256 = "ef661775b5722d7b00f67fc229104317d35637a4fb4434bf2c005afdf1da4d09";
17 };
18
19 checkInputs = [ mock ];
20 propagatedBuildInputs = [ sphinx six ];
21
22 checkPhase = ''
23 ${python.interpreter} -m unittest discover -s tests
24 '';
25
26 # Test failures https://github.com/sphinx-doc/sphinx-testing/issues/5
27 doCheck = false;
28
29 meta = {
30 homepage = "https://github.com/sphinx-doc/sphinx-testing";
31 license = lib.licenses.bsd2;
32 description = "Testing utility classes and functions for Sphinx extensions";
33 };
34}