Merge pull request #181271 from loicreynier/feat-pythonpackages-sphinx-fortran-init

This commit is contained in:
Sandro 2022-08-11 22:42:16 +02:00 committed by GitHub
commit 4b7566cdd7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 46 additions and 0 deletions

View File

@ -0,0 +1,44 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, future
, numpy
, sphinx
, six
}:
buildPythonPackage rec {
pname = "sphinx-fortran";
version = "unstable-2022-03-02";
src = fetchFromGitHub {
owner = "VACUMM";
repo = pname;
rev = "394ae990b43ed43fcff8beb048632f5e99794264";
sha256 = "sha256-IVKu5u9gqs7/9EZrf4ZYd12K6J31u+/B8kk4+8yfohM=";
};
propagatedBuildInputs = [
future
numpy
sphinx
six
];
pythonImportsCheck = [ "sphinxfortran" ];
# Tests are failing because reference files are not updated
doCheck = false;
checkInputs = [
pytestCheckHook
];
meta = with lib; {
description = "Fortran domain and autodoc extensions to Sphinx";
homepage = "http://sphinx-fortran.readthedocs.org/";
license = licenses.cecill21;
maintainers = with maintainers; [ loicreynier ];
};
}

View File

@ -10129,6 +10129,8 @@ in {
sphinx-external-toc = callPackage ../development/python-modules/sphinx-external-toc { };
sphinx-fortran = callPackage ../development/python-modules/sphinx-fortran { };
sphinx-jupyterbook-latex = callPackage ../development/python-modules/sphinx-jupyterbook-latex { };
sphinx-multitoc-numbering = callPackage ../development/python-modules/sphinx-multitoc-numbering { };