nixpkgs/pkgs/tools/text/rpl/default.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

38 lines
809 B
Nix

{ lib, fetchPypi, python3Packages }:
python3Packages.buildPythonApplication rec {
pname = "rpl";
version = "1.15.6";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-4vUnFfxiPvyg9gtwiQE3nHZBnqBtBVwhM3KQzkjzw/I=";
};
nativeBuildInputs = [
python3Packages.setuptools
];
nativeCheckInputs = [
python3Packages.pytest-datafiles
python3Packages.pytestCheckHook
];
propagatedBuildInputs = [
python3Packages.argparse-manpage
python3Packages.chainstream
python3Packages.chardet
python3Packages.regex
];
meta = with lib; {
description = "Replace strings in files";
mainProgram = "rpl";
homepage = "https://github.com/rrthomas/rpl";
license = licenses.gpl2;
maintainers = with maintainers; [ cbley ];
};
}