papis: fix build failure with upstream patches (#547844)

This commit is contained in:
Matthieu Coudron
2026-08-03 00:04:07 +00:00
committed by GitHub
2 changed files with 26 additions and 17 deletions
@@ -8,7 +8,7 @@
hatch-vcs,
# dependencies
feedparser,
lxml,
requests,
# tests
@@ -17,14 +17,14 @@
}:
buildPythonPackage rec {
pname = "arxiv";
version = "3.0.0";
version = "4.0.1";
pyproject = true;
src = fetchFromGitHub {
owner = "lukasschwab";
repo = "arxiv.py";
tag = version;
hash = "sha256-o2Vqkr5Tlx7Iv1NEWDSU8X6hvlGUslIl4oHiRQNGdqI=";
hash = "sha256-nZhi0dPEiv6VLpacvcGvZhvvDkLalrs4IJvMVzb5MJI=";
};
build-system = [
@@ -33,7 +33,7 @@ buildPythonPackage rec {
];
dependencies = [
feedparser
lxml
requests
];
@@ -2,6 +2,7 @@
lib,
buildPythonPackage,
fetchFromGitHub,
fetchpatch2,
# build-system
hatchling,
@@ -15,7 +16,6 @@
dominate,
filetype,
habanero,
isbnlib,
lxml,
platformdirs,
prompt-toolkit,
@@ -25,7 +25,6 @@
python-slugify,
pyyaml,
requests,
stevedore,
# optional dependencies
chardet,
@@ -70,7 +69,6 @@ buildPythonPackage (finalAttrs: {
dominate
filetype
habanero
isbnlib
lxml
platformdirs
prompt-toolkit
@@ -80,7 +78,6 @@ buildPythonPackage (finalAttrs: {
python-slugify
pyyaml
requests
stevedore
]
++ lib.optionals withOptDeps finalAttrs.passthru.optional-dependencies.complete;
@@ -111,27 +108,39 @@ buildPythonPackage (finalAttrs: {
"tests"
];
disabledTestPaths = [
# Require network access
"tests/downloaders"
"papis/downloaders/usenix.py"
];
disabledTests = [
# Require network access
"test_add_folder_name_cli"
"test_add_link_cli"
"test_download_document"
"test_get_matching_importers_by_name"
"test_matching_importers_by_uri"
"test_yaml_unicode_dump"
# FileNotFoundError: Command not found: 'init'
"test_git_cli"
]
++ lib.optionals withOptDeps [
# Require network access
"test_csl_style_download"
];
# Until a release >0.15.0 (that would already contain these commits)
patches = [
# Commit 44c6463: chore: move isbnlib to optional dependencies
(fetchpatch2 {
url = "https://github.com/papis/papis/commit/44c6463f79cbc3a09adb541ae7df4e00a194b86b.patch?full_index=1";
hash = "sha256-3E18cyzkiZsNvgH/X8dZu+3tGGpbBsaQ3nIoDuIYFqw=";
})
# Commit 7518e53: chore: remove isbn dependency
(fetchpatch2 {
url = "https://github.com/papis/papis/commit/7518e53e5d485e3cec1e202af6cb4921b9976b5b.patch?full_index=1";
hash = "sha256-iBqlvHfH+6fyhi2C7lpwI1O59DKrKp7p45x29kzPRR0=";
})
# Commit 15cae59: test: skip tests if missing isbnlib
(fetchpatch2 {
url = "https://github.com/papis/papis/commit/15cae5986ae9dec75c7d103757adbd73c39feb89.patch?full_index=1";
hash = "sha256-kuVZdOd+H99TinM7yAs7NJrfw7rOPyxDlSaT0P2NeC4=";
})
];
meta = {
description = "Powerful command-line document and bibliography manager";
mainProgram = "papis";
@@ -140,7 +149,7 @@ buildPythonPackage (finalAttrs: {
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [
nico202
teto
octvs
];
};
})