forked from mirrors/nixpkgs
7bd65d54f7
While looking at the sphinx package I noticed it was heavily undermaintained, which is when we noticed nand0p has been inactive for roughly 18 months. It is therefore prudent to assume they will not be maintaining their packages, modules and tests. - Their last contribution to nixpkgs was in 2019/12 - On 2021/05/08 I wrote them an email to the address listed in the maintainer-list, which they didn't reply to.
31 lines
871 B
Nix
31 lines
871 B
Nix
{ lib, buildPythonPackage, fetchPypi, isPy27, pbr, sphinx, sphinx-testing, nose, glibcLocales }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "sphinx-jinja";
|
|
version = "1.1.1";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "0hz13vc65zi4zmay40nz8wzxickv1q9zzl6x03qc7rvvapz0c91p";
|
|
};
|
|
|
|
buildInputs = [ pbr ];
|
|
propagatedBuildInputs = [ sphinx ];
|
|
|
|
checkInputs = [ sphinx-testing nose glibcLocales ];
|
|
|
|
checkPhase = lib.optionalString (!isPy27) ''
|
|
# prevent python from loading locally and breaking namespace
|
|
mv sphinxcontrib .sphinxcontrib
|
|
'' + ''
|
|
# 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; [ ];
|
|
license = licenses.mit;
|
|
};
|
|
}
|