about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/f90nml
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/f90nml')
-rw-r--r--nixpkgs/pkgs/development/python-modules/f90nml/default.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/f90nml/default.nix b/nixpkgs/pkgs/development/python-modules/f90nml/default.nix
new file mode 100644
index 000000000000..39aa55542ded
--- /dev/null
+++ b/nixpkgs/pkgs/development/python-modules/f90nml/default.nix
@@ -0,0 +1,28 @@
+{ lib, buildPythonPackage, fetchFromGitHub, python, setuptools-scm }:
+
+buildPythonPackage rec {
+  pname = "f90nml";
+  version = "1.4.1";
+
+  src = fetchFromGitHub {
+    owner = "marshallward";
+    repo = pname;
+    rev = "v" + version;
+    sha256 = "sha256-nSpVBAS2VvXIQwYK/qVVzEc13bicAQ+ScXpO4Rn2O+8=";
+  };
+
+  nativeBuildInputs = [ setuptools-scm ];
+
+  checkPhase = ''
+    ${python.interpreter} setup.py test
+  '';
+
+  pythonImportsCheck = [ "f90nml" ];
+
+  meta = with lib; {
+    description = "Python module for working with Fortran Namelists";
+    homepage = "https://f90nml.readthedocs.io";
+    license = licenses.asl20;
+    maintainers = with maintainers; [ loicreynier ];
+  };
+}