1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 python, 6 setuptools-scm, 7}: 8 9buildPythonPackage rec { 10 pname = "f90nml"; 11 version = "1.4.1"; 12 format = "setuptools"; 13 14 src = fetchFromGitHub { 15 owner = "marshallward"; 16 repo = pname; 17 rev = "v" + version; 18 hash = "sha256-nSpVBAS2VvXIQwYK/qVVzEc13bicAQ+ScXpO4Rn2O+8="; 19 }; 20 21 nativeBuildInputs = [ setuptools-scm ]; 22 23 checkPhase = '' 24 ${python.interpreter} setup.py test 25 ''; 26 27 pythonImportsCheck = [ "f90nml" ]; 28 29 meta = with lib; { 30 description = "Python module for working with Fortran Namelists"; 31 mainProgram = "f90nml"; 32 homepage = "https://f90nml.readthedocs.io"; 33 license = licenses.asl20; 34 maintainers = with maintainers; [ loicreynier ]; 35 }; 36}