Skip to content

Commit

Permalink
python312Packages.arxiv: init at 2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
octvs committed Nov 19, 2024
1 parent 0f27402 commit 7a39bd7
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
44 changes: 44 additions & 0 deletions pkgs/development/python-modules/arxiv/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
feedparser,
mock,
pytestCheckHook,
requests,
setuptools,
}:
buildPythonPackage rec {
pname = "arxiv";
version = "2.1.3";
pyproject = true;

src = fetchFromGitHub {
owner = "lukasschwab";
repo = "arxiv.py";
rev = "refs/tags/${version}";
hash = "sha256-Niu3N0QTVxucboQx1FQq1757Hjj1VVWeDZn7O7YtjWY=";
};

build-system = [ setuptools ];

dependencies = [
feedparser
requests
];

nativeCheckInputs = [
pytestCheckHook
mock
];

pythonImportsCheck = [ "arxiv" ];

meta = {
description = "Python wrapper for the arXiv API";
homepage = "https://github.com/lukasschwab/arxiv.py";
changelog = "https://github.com/lukasschwab/arxiv.py/releases/tag/${version}";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.octvs ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -808,6 +808,8 @@ self: super: with self; {

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

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

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

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

0 comments on commit 7a39bd7

Please sign in to comment.