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 name = "${pname}-${version}";
14
15 src = fetchPypi {
16 inherit pname version;
17 sha256 = "9d30f93007620e137b33edf19f52a7225eab853546b7e588ef09d1342e821e94";
18 };
19
20 checkInputs = [ mock ];
21 propagatedBuildInputs = [ sphinx six ];
22
23 checkPhase = ''
24 ${python.interpreter} -m unittest discover -s tests
25 '';
26
27 # Test failures https://github.com/sphinx-doc/sphinx-testing/issues/5
28 doCheck = false;
29
30 meta = {
31 homepage = https://github.com/sphinx-doc/sphinx-testing;
32 license = lib.licenses.bsd2;
33 description = "Testing utility classes and functions for Sphinx extensions";
34 };
35}