depot/third_party/nixpkgs/pkgs/development/python-modules/f90nml/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

36 lines
746 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
python,
setuptools-scm,
}:
buildPythonPackage rec {
pname = "f90nml";
version = "1.4.1";
format = "setuptools";
src = fetchFromGitHub {
owner = "marshallward";
repo = pname;
rev = "v" + version;
hash = "sha256-nSpVBAS2VvXIQwYK/qVVzEc13bicAQ+ScXpO4Rn2O+8=";
};
nativeBuildInputs = [ setuptools-scm ];
checkPhase = ''
${python.interpreter} setup.py test
'';
pythonImportsCheck = [ "f90nml" ];
meta = with lib; {
description = "Python module for working with Fortran Namelists";
mainProgram = "f90nml";
homepage = "https://f90nml.readthedocs.io";
license = licenses.asl20;
maintainers = with maintainers; [ loicreynier ];
};
}