2023-10-19 13:55:26 +00:00
|
|
|
{ lib
|
|
|
|
, python3
|
|
|
|
, python3Packages
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "arxiv-latex-cleaner";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "1.0.6";
|
2023-10-19 13:55:26 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "google-research";
|
|
|
|
repo = "arxiv-latex-cleaner";
|
2024-01-25 14:12:00 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-06-20 14:57:18 +00:00
|
|
|
hash = "sha256-S/r5riFIsRG+5za+4kVvUXOLIJ3ELCDWlSpYeSuNs+s=";
|
2023-10-19 13:55:26 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "arxiv_latex_cleaner";
|
2023-10-19 13:55:26 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ arkivm ];
|
|
|
|
};
|
|
|
|
}
|