Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / by-name / ar / arxiv-latex-cleaner / package.nix
blobc1f4a8a3d75b46cbb3edcff8d64f2616aeafa7a8
1 { lib
2 , python3
3 , python3Packages
4 , fetchFromGitHub
5 }:
6 python3Packages.buildPythonApplication rec {
7   pname = "arxiv-latex-cleaner";
8   version = "1.0.1";
10   src = fetchFromGitHub {
11     owner = "google-research";
12     repo = "arxiv-latex-cleaner";
13     rev = "v${version}";
14     hash = "sha256-1IWSDKEoAM4hBKAEEcPq7X89WYDprifDL2GTEJQtdcQ=";
15   };
17   propagatedBuildInputs = with python3Packages; [
18     pillow
19     pyyaml
20     regex
21     absl-py
22   ];
24   checkPhase = ''
25     runHook preCheck
26     ${python3.interpreter} -m unittest arxiv_latex_cleaner.tests.arxiv_latex_cleaner_test
27     runHook postCheck
28   '';
30   meta = with lib; {
31     homepage = "https://github.com/google-research/arxiv-latex-cleaner";
32     description = "Easily clean the LaTeX code of your paper to submit to arXiv";
33     license = licenses.asl20;
34     maintainers = with maintainers; [ arkivm ];
35   };