depot/third_party/nixpkgs/pkgs/development/python-modules/f90nml/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

29 lines
707 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";
homepage = "https://f90nml.readthedocs.io";
license = licenses.asl20;
maintainers = with maintainers; [ loicreynier ];
};
}