2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pytestCheckHook,
|
|
|
|
future,
|
|
|
|
numpy,
|
|
|
|
sphinx,
|
|
|
|
six,
|
2022-08-12 12:06:08 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sphinx-fortran";
|
|
|
|
version = "unstable-2022-03-02";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "VACUMM";
|
|
|
|
repo = pname;
|
|
|
|
rev = "394ae990b43ed43fcff8beb048632f5e99794264";
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-IVKu5u9gqs7/9EZrf4ZYd12K6J31u+/B8kk4+8yfohM=";
|
2022-08-12 12:06:08 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
future
|
|
|
|
numpy
|
|
|
|
sphinx
|
|
|
|
six
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "sphinxfortran" ];
|
|
|
|
|
|
|
|
# Tests are failing because reference files are not updated
|
|
|
|
doCheck = false;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Fortran domain and autodoc extensions to Sphinx";
|
|
|
|
homepage = "http://sphinx-fortran.readthedocs.org/";
|
|
|
|
license = licenses.cecill21;
|
|
|
|
maintainers = with maintainers; [ loicreynier ];
|
|
|
|
};
|
|
|
|
}
|