2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
setuptools-scm,
|
2024-09-19 14:19:46 +00:00
|
|
|
unittestCheckHook,
|
2024-06-05 15:53:02 +00:00
|
|
|
}:
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "f90nml";
|
|
|
|
version = "1.4.1";
|
2024-09-19 14:19:46 +00:00
|
|
|
pyproject = true;
|
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
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
build-system = [ setuptools-scm ];
|
2022-06-16 17:23:12 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
nativeCheckInputs = [ unittestCheckHook ];
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "f90nml" ];
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
meta = {
|
2022-06-16 17:23:12 +00:00
|
|
|
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";
|
2024-09-19 14:19:46 +00:00
|
|
|
license = lib.licenses.asl20;
|
|
|
|
maintainers = with lib.maintainers; [ loicreynier ];
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
|
|
|
}
|