Merge: zmap: 4.2.0 -> 4.3.1 (#364578)
[NixPkgs.git] / pkgs / by-name / ar / arxiv-latex-cleaner / package.nix
blobb9dbbb9f9a1f9d77b8c92918a9be7b9369fcdfb5
2   lib,
3   python3,
4   python3Packages,
5   fetchFromGitHub,
6 }:
7 python3Packages.buildPythonApplication rec {
8   pname = "arxiv-latex-cleaner";
9   version = "1.0.8";
11   src = fetchFromGitHub {
12     owner = "google-research";
13     repo = "arxiv-latex-cleaner";
14     rev = "refs/tags/v${version}";
15     hash = "sha256-CQb1u1j+/px+vNqA3iXZ2oe6/0ZWeMjWrUQL9elRDEI=";
16   };
18   propagatedBuildInputs = with python3Packages; [
19     pillow
20     pyyaml
21     regex
22     absl-py
23   ];
25   checkPhase = ''
26     runHook preCheck
27     ${python3.interpreter} -m unittest arxiv_latex_cleaner.tests.arxiv_latex_cleaner_test
28     runHook postCheck
29   '';
31   meta = with lib; {
32     homepage = "https://github.com/google-research/arxiv-latex-cleaner";
33     description = "Easily clean the LaTeX code of your paper to submit to arXiv";
34     mainProgram = "arxiv_latex_cleaner";
35     license = licenses.asl20;
36     maintainers = with maintainers; [ arkivm ];
37   };