From 5a17895aea1321febb8a0976645caa61d160166c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Reynier?= Date: Tue, 15 Mar 2022 14:55:36 +0100 Subject: [PATCH] pythonPackages.f90nml: init at 1.4.1 --- .../python-modules/f90nml/default.nix | 28 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 30 insertions(+) create mode 100644 pkgs/development/python-modules/f90nml/default.nix 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 { };