about summary refs log tree commit diff
path: root/pkgs/by-name/ar
diff options
context:
space:
mode:
authorVikram Narayanan <vikram186@gmail.com>2023-10-09 12:10:40 -0700
committerVikram Narayanan <vikram186@gmail.com>2023-10-10 13:50:57 -0700
commit6e5cfb845fd70829f38235268cbcf00785ba5513 (patch)
tree251137d92fd1d57db8787d808e26beef5c475970 /pkgs/by-name/ar
parent354d127959044be2ee5bcaf6ed86969a301322aa (diff)
arxiv-latex-cleaner: init at v1.0.1
Diffstat (limited to 'pkgs/by-name/ar')
-rw-r--r--pkgs/by-name/ar/arxiv-latex-cleaner/package.nix36
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/by-name/ar/arxiv-latex-cleaner/package.nix b/pkgs/by-name/ar/arxiv-latex-cleaner/package.nix
new file mode 100644
index 0000000000000..c1f4a8a3d75b4
--- /dev/null
+++ b/pkgs/by-name/ar/arxiv-latex-cleaner/package.nix
@@ -0,0 +1,36 @@
+{ lib
+, python3
+, python3Packages
+, fetchFromGitHub
+}:
+python3Packages.buildPythonApplication rec {
+  pname = "arxiv-latex-cleaner";
+  version = "1.0.1";
+
+  src = fetchFromGitHub {
+    owner = "google-research";
+    repo = "arxiv-latex-cleaner";
+    rev = "v${version}";
+    hash = "sha256-1IWSDKEoAM4hBKAEEcPq7X89WYDprifDL2GTEJQtdcQ=";
+  };
+
+  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";
+    license = licenses.asl20;
+    maintainers = with maintainers; [ arkivm ];
+  };
+}