Unverified Commit dcdca3c5 authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

Merge pull request #331897 from pyrox0/setuppytest/f90nml

python312Packages.f90nml: Migrate away from setup.py test; modernize
parents 3725cee4 6bad8d62
Loading
Loading
Loading
Loading
+7 −9
Original line number Diff line number Diff line
@@ -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 ];
  };
}