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 15, 2024
1 parent ade7a79 commit 8109c58
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
36 changes: 36 additions & 0 deletions pkgs/development/python-modules/arxiv/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
feedparser,
mock,
pytestCheckHook,
requests,
setuptools,
}:
buildPythonPackage rec {
pname = "arxiv";
version = "2.1.0";

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

nativeBuildInputs = [setuptools];

propagatedBuildInputs = [feedparser requests];

nativeCheckInputs = [pytestCheckHook mock];

pythonImportsCheck = ["arxiv"];

meta = {
description = "Python wrapper for the arXiv API";
homepage = "https://github.com/lukasschwab/arxiv.py";
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 8109c58

Please sign in to comment.