forked from mirrors/nixpkgs
300c9d3a0d
python3Packages.sphinx: 3.3.1 -> 3.5.4
82 lines
1.7 KiB
Nix
82 lines
1.7 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pytest
|
|
, simplejson
|
|
, mock
|
|
, glibcLocales
|
|
, html5lib
|
|
, pythonOlder
|
|
, enum34
|
|
, python
|
|
, docutils
|
|
, jinja2
|
|
, pygments
|
|
, alabaster
|
|
, Babel
|
|
, snowballstemmer
|
|
, six
|
|
, whoosh
|
|
, imagesize
|
|
, requests
|
|
, sphinxcontrib-applehelp
|
|
, sphinxcontrib-devhelp
|
|
, sphinxcontrib-htmlhelp
|
|
, sphinxcontrib-jsmath
|
|
, sphinxcontrib-qthelp
|
|
, sphinxcontrib-serializinghtml
|
|
, sphinxcontrib-websupport
|
|
, typing ? null
|
|
, setuptools
|
|
, packaging
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "sphinx";
|
|
version = "3.5.4";
|
|
src = fetchPypi {
|
|
pname = "Sphinx";
|
|
inherit version;
|
|
sha256 = "19010b7b9fa0dc7756a6e105b2aacd3a80f798af3c25c273be64d7beeb482cb1";
|
|
};
|
|
LC_ALL = "en_US.UTF-8";
|
|
|
|
checkInputs = [ pytest ];
|
|
buildInputs = [ simplejson mock glibcLocales html5lib ] ++ lib.optional (pythonOlder "3.4") enum34;
|
|
# Disable two tests that require network access.
|
|
checkPhase = ''
|
|
cd tests; ${python.interpreter} run.py --ignore py35 -k 'not test_defaults and not test_anchors_ignored'
|
|
'';
|
|
propagatedBuildInputs = [
|
|
docutils
|
|
jinja2
|
|
pygments
|
|
alabaster
|
|
Babel
|
|
packaging
|
|
setuptools
|
|
snowballstemmer
|
|
six
|
|
whoosh
|
|
imagesize
|
|
requests
|
|
sphinxcontrib-applehelp
|
|
sphinxcontrib-devhelp
|
|
sphinxcontrib-htmlhelp
|
|
sphinxcontrib-jsmath
|
|
sphinxcontrib-qthelp
|
|
sphinxcontrib-serializinghtml
|
|
sphinxcontrib-websupport
|
|
] ++ lib.optional (pythonOlder "3.5") typing;
|
|
|
|
# Lots of tests. Needs network as well at some point.
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
description = "A tool that makes it easy to create intelligent and beautiful documentation for Python projects";
|
|
homepage = "https://www.sphinx-doc.org";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = with lib.maintainers; [ nand0p ];
|
|
};
|
|
}
|