1{ lib, buildPythonPackage, fetchPypi, isPy27, pbr, sphinx, sphinx-testing, nose, glibcLocales }:
2
3buildPythonPackage rec {
4 pname = "sphinx-jinja";
5 version = "1.1.1";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "0hz13vc65zi4zmay40nz8wzxickv1q9zzl6x03qc7rvvapz0c91p";
10 };
11
12 buildInputs = [ pbr ];
13 propagatedBuildInputs = [ sphinx ];
14
15 checkInputs = [ sphinx-testing nose glibcLocales ];
16
17 checkPhase = lib.optionalString (!isPy27) ''
18 # prevent python from loading locally and breaking namespace
19 mv sphinxcontrib .sphinxcontrib
20 '' + ''
21 # Zip (epub) does not support files with epoch timestamp
22 LC_ALL="en_US.UTF-8" nosetests -e test_build_epub
23 '';
24
25 meta = with lib; {
26 description = "Sphinx extension to include jinja templates in documentation";
27 maintainers = with maintainers; [ ];
28 license = licenses.mit;
29 };
30}