about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/f90nml/default.nix
blob: 2e9610bb353ed907046dd59012af83703079b36a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ 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 ];
  };
}