2017-09-05 10:16:41 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, mock
|
|
|
|
, sphinx
|
|
|
|
, six
|
|
|
|
, python
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sphinx-testing";
|
2018-12-14 19:21:52 +00:00
|
|
|
version = "0.8.1";
|
2017-09-05 10:16:41 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-12-14 19:21:52 +00:00
|
|
|
sha256 = "1cbgkp770d7k85nmqkz50wk09xjwcmqw7sb2z17086n7vc1hy2rf";
|
2017-09-05 10:16:41 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ mock ];
|
|
|
|
propagatedBuildInputs = [ sphinx six ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} -m unittest discover -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";
|
|
|
|
};
|
|
|
|
}
|