summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/sphinx-fortran/default.nix
blob: 76e1f9f24e06faefe82588d4608a1c5f3f2b6f71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pytestCheckHook,
  future,
  numpy,
  sphinx,
  six,
}:

buildPythonPackage {
  pname = "sphinx-fortran";
  version = "unstable-2022-03-02";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "VACUMM";
    repo = "sphinx-fortran";
    rev = "394ae990b43ed43fcff8beb048632f5e99794264";
    hash = "sha256-IVKu5u9gqs7/9EZrf4ZYd12K6J31u+/B8kk4+8yfohM=";
  };

  propagatedBuildInputs = [
    future
    numpy
    sphinx
    six
  ];

  pythonImportsCheck = [ "sphinxfortran" ];

  # Tests are failing because reference files are not updated
  doCheck = false;

  nativeCheckInputs = [ pytestCheckHook ];

  meta = {
    description = "Fortran domain and autodoc extensions to Sphinx";
    homepage = "http://sphinx-fortran.readthedocs.org/";
    license = lib.licenses.cecill21;
    maintainers = with lib.maintainers; [ loicreynier ];
  };
}