nixpkgs/pkgs/by-name/fy/fypp/package.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
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.
2024-03-19 03:14:51 +01:00

25 lines
582 B
Nix

{ lib, fetchFromGitHub, python3 }:
python3.pkgs.buildPythonApplication rec {
pname = "fypp";
version = "3.2";
pyproject = true;
src = fetchFromGitHub {
owner = "aradi";
repo = pname;
rev = version;
hash = "sha256-MgGVlOqOIrIVoDfBMVpFLT26mhYndxans2hfo/+jdoA=";
};
nativeBuildInputs = [ python3.pkgs.setuptools ];
meta = with lib; {
description = "Python powered Fortran preprocessor";
mainProgram = "fypp";
homepage = "https://github.com/aradi/fypp";
license = licenses.gpl3Only;
maintainers = [ maintainers.sheepforce ];
};
}