1{ lib
2, buildPythonPackage
3, fetchPypi
4, mock
5, sphinx
6, six
7, python
8}:
9
10buildPythonPackage rec {
11 pname = "sphinx-testing";
12 version = "0.7.2";
13
14 src = fetchPypi {
15 inherit pname version;
16 sha256 = "9d30f93007620e137b33edf19f52a7225eab853546b7e588ef09d1342e821e94";
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}