Merge pull request #331897 from pyrox0/setuppytest/f90nml
python312Packages.f90nml: Migrate away from setup.py test; modernize
This commit is contained in:
@@ -2,14 +2,14 @@
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
python,
|
||||
setuptools-scm,
|
||||
unittestCheckHook,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "f90nml";
|
||||
version = "1.4.1";
|
||||
format = "setuptools";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "marshallward";
|
||||
@@ -18,19 +18,17 @@ buildPythonPackage rec {
|
||||
hash = "sha256-nSpVBAS2VvXIQwYK/qVVzEc13bicAQ+ScXpO4Rn2O+8=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ setuptools-scm ];
|
||||
build-system = [ setuptools-scm ];
|
||||
|
||||
checkPhase = ''
|
||||
${python.interpreter} setup.py test
|
||||
'';
|
||||
nativeCheckInputs = [ unittestCheckHook ];
|
||||
|
||||
pythonImportsCheck = [ "f90nml" ];
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
description = "Python module for working with Fortran Namelists";
|
||||
mainProgram = "f90nml";
|
||||
homepage = "https://f90nml.readthedocs.io";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ loicreynier ];
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = with lib.maintainers; [ loicreynier ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user