@@ -22202,50 +22202,9 @@ in {
2220222202 };
2220322203 });
2220422204
22205− sphinx = buildPythonPackage (rec {
22206− name = "${pname}-${version}";
22207− pname = "Sphinx";
22208− version = "1.5.2";
22209− src = fetchPypi {
22210− inherit pname version;
22211− sha256 = "049c48393909e4704a6ed4de76fd39c8622e165414660bfb767e981e7931c722";
22212− };
22213− LC_ALL = "en_US.UTF-8";
22214− buildInputs = with self; [ pytest simplejson mock pkgs.glibcLocales html5lib ] ++ optional (pythonOlder "3.4") self.enum34;
22215− # Disable two tests that require network access.
22216− checkPhase = ''
22217− cd tests; ${python.interpreter} run.py --ignore py35 -k 'not test_defaults and not test_anchors_ignored'
22218− '';
22219− propagatedBuildInputs = with self; [
22220− docutils
22221− jinja2
22222− pygments
22223− alabaster
22224− Babel
22225− snowballstemmer
22226− six
22227− sqlalchemy
22228− whoosh
22229− imagesize
22230− requests
22231− ];
22232−
22233− # https://github.com/NixOS/nixpkgs/issues/22501
22234− # Do not run `python sphinx-build arguments` but `sphinx-build arguments`.
22235− postPatch = ''
22236− substituteInPlace sphinx/make_mode.py --replace "sys.executable, " ""
22237− '';
22238−
22239− meta = {
22240− description = "A tool that makes it easy to create intelligent and beautiful documentation for Python projects";
22241− homepage = http://sphinx.pocoo.org/;
22242− license = licenses.bsd3;
22243− maintainers = with maintainers; [ nand0p ];
22244− platforms = platforms.all;
22245− };
22246− });
22205+ sphinx = callPackage ../development/python-modules/sphinx { };
2224722206
22248− sphinx_1_2 = self.sphinx.override rec {
22207+ sphinx_1_2 = self.sphinx.overridePythonPackage rec {
2224922208 name = "sphinx-1.2.3";
2225022209 src = pkgs.fetchurl {
2225122210 url = "mirror://pypi/s/sphinx/sphinx-1.2.3.tar.gz";