Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python311Packages.arxiv-latex-cleaner: init at 1.0.5 #301137

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions pkgs/development/python-modules/arxiv-latex-cleaner/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{ lib
, buildPythonPackage
, setuptools-scm
, pythonOlder
, pythonRelaxDepsHook
, fetchFromGitHub
, pytestCheckHook
, absl-py
, pillow
, pyyaml
, regex
}:

buildPythonPackage rec {
pname = "arxiv-latex-cleaner";
version = "1.0.5";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
version = "1.0.5";
version = "1.0.8";

format = "pyproject";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
format = "pyproject";
pyproject = true;


disabled = pythonOlder "3.9";

src = fetchFromGitHub {
owner = "google-research";
repo = "arxiv-latex-cleaner";
rev = "refs/tags/v${version}";
hash = "sha256-Yxp8XtlISVZfEjCEJ/EXsIGMCHDPOwPcjkJxECeXvYk=";
};

nativeBuildInputs = [
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
nativeBuildInputs = [
build-system = [

setuptools-scm
pythonRelaxDepsHook
];

propagatedBuildInputs = [
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
propagatedBuildInputs = [
dependencies = [

absl-py
pillow
pyyaml
regex
];

nativeCheckInputs = [
pytestCheckHook
];

pythonRelaxDeps = [ "absl_py" ];

pythonImportsCheck = [ "arxiv_latex_cleaner" ];

meta = {
description = "This tool allows you to easily clean the LaTeX code of your paper to submit to arXiv.";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
description = "This tool allows you to easily clean the LaTeX code of your paper to submit to arXiv.";
description = "Tool to clean the LaTeX code of your paper to submit to arXiv";

homepage = "https://github.com/google-research/arxiv-latex-cleaner";
downloadPage = "https://github.com/google-research/arxiv-latex-cleaner/releases";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ chrispattison ];
};
}
3 changes: 3 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change

# This file contains the Python packages set.
# Each attribute is a Python library or a helper function.
# Expressions for Python libraries are supposed to be in `pkgs/development/python-modules/<name>/default.nix`.
Expand Down Expand Up @@ -765,6 +766,8 @@ self: super: with self; {

arviz = callPackage ../development/python-modules/arviz { };

arxiv-latex-cleaner = callPackage ../development/python-modules/arxiv-latex-cleaner { };

arxiv2bib = callPackage ../development/python-modules/arxiv2bib { };

asana = callPackage ../development/python-modules/asana { };
Expand Down