mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 20:03:16 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
31 lines
735 B
Nix
31 lines
735 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 ];
|
|
};
|
|
}
|