depot/third_party/nixpkgs/pkgs/development/python-modules/f90nml/default.nix
Default email 3a4df29a92 Project import generated by Copybara.
GitOrigin-RevId: 3d7435c638baffaa826b85459df0fff47f12317d
2022-06-16 19:23:12 +02:00

28 lines
684 B
Nix

{ lib, buildPythonPackage, fetchFromGitHub, python, setuptools-scm }:
buildPythonPackage rec {
pname = "f90nml";
version = "1.4.1";
src = fetchFromGitHub {
owner = "marshallward";
repo = pname;
rev = "v" + version;
sha256 = "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 ];
};
}