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