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 22, 2024
1 parent 4c41b1d commit d830b93
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 0 deletions.
63 changes: 63 additions & 0 deletions pkgs/development/python-modules/arxiv/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{
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
];

disabledTests = [
"test_from_feed_entry"
"test_download_from_query"
"test_download_tarfile_from_query"
"test_download_with_custom_slugify_from_query"
"test_get_short_id"
"test_invalid_format_id"
"test_invalid_id"
"test_legacy_ids"
"test_max_results"
"test_missing_title"
"test_no_duplicates"
"test_nonexistent_id_in_list"
"test_offset"
"test_query_page_count"
"test_result_shape"
"test_search_results_offset"
];

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 @@ -810,6 +810,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 d830b93

Please sign in to comment.