Something went wrong. Try again.
lol
Something went wrong. Try again.
1.4 kB · 74 lines
Nix
at master
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475{ lib, buildPythonPackage, fetchFromGitHub,
# build-system hatchling, hatch-vcs,
# dependencies feedparser, requests,
# tests mock, pytestCheckHook,}:buildPythonPackage rec { pname = "arxiv"; version = "2.4.1"; pyproject = true;
src = fetchFromGitHub { owner = "lukasschwab"; repo = "arxiv.py"; tag = version; hash = "sha256-3GQ0HBYwkKlZ5WNgbJI/gHNi800WlnZiAJB6aSVBvjo="; };
build-system = [ hatchling hatch-vcs ];
dependencies = [ feedparser requests ];
nativeCheckInputs = [ pytestCheckHook mock ];
disabledTests = [ # Require network access "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/${src.tag}"; license = lib.licenses.mit; maintainers = [ lib.maintainers.octvs ]; };}