2022-06-16 17:23:12 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, python, setuptools-scm }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "f90nml";
|
|
|
|
version = "1.4.1";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "marshallward";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v" + version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-nSpVBAS2VvXIQwYK/qVVzEc13bicAQ+ScXpO4Rn2O+8=";
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} setup.py test
|
|
|
|
'';
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "f90nml" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python module for working with Fortran Namelists";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "f90nml";
|
2022-06-16 17:23:12 +00:00
|
|
|
homepage = "https://f90nml.readthedocs.io";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ loicreynier ];
|
|
|
|
};
|
|
|
|
}
|