diff --git a/pkgs/development/python-modules/f90nml/default.nix b/pkgs/development/python-modules/f90nml/default.nix new file mode 100644 index 000000000000..39aa55542ded --- /dev/null +++ b/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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index a4c23948277d..8fb7d35eebdc 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2873,6 +2873,8 @@ in { ezdxf = callPackage ../development/python-modules/ezdxf { }; + f90nml = callPackage ../development/python-modules/f90nml { }; + Fabric = callPackage ../development/python-modules/Fabric { }; faadelays = callPackage ../development/python-modules/faadelays { };