2020-02-13 20:53:41 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, isPy27, pbr, sphinx, sphinx-testing, nose, glibcLocales }:
|
2017-12-17 02:12:34 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sphinx-jinja";
|
2020-02-13 19:18:47 +00:00
|
|
|
version = "1.1.1";
|
2017-12-17 02:12:34 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-02-13 19:18:47 +00:00
|
|
|
sha256 = "0hz13vc65zi4zmay40nz8wzxickv1q9zzl6x03qc7rvvapz0c91p";
|
2017-12-17 02:12:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ pbr ];
|
|
|
|
propagatedBuildInputs = [ sphinx ];
|
|
|
|
|
|
|
|
checkInputs = [ sphinx-testing nose glibcLocales ];
|
|
|
|
|
2020-02-13 20:53:41 +00:00
|
|
|
checkPhase = lib.optionalString (!isPy27) ''
|
|
|
|
# prevent python from loading locally and breaking namespace
|
|
|
|
mv sphinxcontrib .sphinxcontrib
|
|
|
|
'' + ''
|
2017-12-17 02:12:34 +00:00
|
|
|
# Zip (epub) does not support files with epoch timestamp
|
|
|
|
LC_ALL="en_US.UTF-8" nosetests -e test_build_epub
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Sphinx extension to include jinja templates in documentation";
|
|
|
|
maintainers = with maintainers; [ nand0p ];
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|