nixpkgs/pkgs/by-name/ar/arxiv-latex-cleaner/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

38 lines
913 B
Nix

{ lib
, python3
, python3Packages
, fetchFromGitHub
}:
python3Packages.buildPythonApplication rec {
pname = "arxiv-latex-cleaner";
version = "1.0.5";
src = fetchFromGitHub {
owner = "google-research";
repo = "arxiv-latex-cleaner";
rev = "refs/tags/v${version}";
hash = "sha256-Yxp8XtlISVZfEjCEJ/EXsIGMCHDPOwPcjkJxECeXvYk=";
};
propagatedBuildInputs = with python3Packages; [
pillow
pyyaml
regex
absl-py
];
checkPhase = ''
runHook preCheck
${python3.interpreter} -m unittest arxiv_latex_cleaner.tests.arxiv_latex_cleaner_test
runHook postCheck
'';
meta = with lib; {
homepage = "https://github.com/google-research/arxiv-latex-cleaner";
description = "Easily clean the LaTeX code of your paper to submit to arXiv";
mainProgram = "arxiv_latex_cleaner";
license = licenses.asl20;
maintainers = with maintainers; [ arkivm ];
};
}