about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorLoïc Reynier <loic@loicreynier.fr>2022-07-12 17:04:08 +0200
committerLoïc Reynier <loic@loicreynier.fr>2022-08-09 21:41:58 +0200
commit10484091c9164acddf3a3f4faa4ca7b23eaf9a7b (patch)
tree57374db3887fc6ed469a04be19a29f0435421fa4 /pkgs
parent164afe48014dbdbd986c801ff4a828203921b8bf (diff)
pythonPackages.sphinx-fortran: init at unstable-2022-03-02
Co-authored-by: pbsds <pbsds@hotmail.com>
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/python-modules/sphinx-fortran/default.nix44
-rw-r--r--pkgs/top-level/python-packages.nix2
2 files changed, 46 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/sphinx-fortran/default.nix b/pkgs/development/python-modules/sphinx-fortran/default.nix
new file mode 100644
index 0000000000000..748e4c6948bcc
--- /dev/null
+++ b/pkgs/development/python-modules/sphinx-fortran/default.nix
@@ -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 ];
+  };
+}
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index 34cced4ec2215..454efd44128bc 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -10004,6 +10004,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 { };