1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 future,
7 numpy,
8 sphinx,
9 six,
10}:
11
12buildPythonPackage {
13 pname = "sphinx-fortran";
14 version = "unstable-2022-03-02";
15 format = "setuptools";
16
17 src = fetchFromGitHub {
18 owner = "VACUMM";
19 repo = "sphinx-fortran";
20 rev = "394ae990b43ed43fcff8beb048632f5e99794264";
21 hash = "sha256-IVKu5u9gqs7/9EZrf4ZYd12K6J31u+/B8kk4+8yfohM=";
22 };
23
24 propagatedBuildInputs = [
25 future
26 numpy
27 sphinx
28 six
29 ];
30
31 pythonImportsCheck = [ "sphinxfortran" ];
32
33 # Tests are failing because reference files are not updated
34 doCheck = false;
35
36 nativeCheckInputs = [ pytestCheckHook ];
37
38 meta = with lib; {
39 description = "Fortran domain and autodoc extensions to Sphinx";
40 homepage = "http://sphinx-fortran.readthedocs.org/";
41 license = licenses.cecill21;
42 maintainers = with maintainers; [ loicreynier ];
43 };
44}