python312Packages.papis: 0.13 -> 0.14
This commit is contained in:
parent
89281cba81
commit
bfec9ac865
@ -1,62 +1,65 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
arxiv2bib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
|
||||
# build-system
|
||||
hatchling,
|
||||
|
||||
# dependencies
|
||||
arxiv,
|
||||
beautifulsoup4,
|
||||
bibtexparser,
|
||||
buildPythonPackage,
|
||||
chardet,
|
||||
click,
|
||||
colorama,
|
||||
configparser,
|
||||
dominate,
|
||||
fetchFromGitHub,
|
||||
filetype,
|
||||
habanero,
|
||||
isbnlib,
|
||||
lxml,
|
||||
platformdirs,
|
||||
prompt-toolkit,
|
||||
pygments,
|
||||
pyparsing,
|
||||
pytestCheckHook,
|
||||
python-doi,
|
||||
python-slugify,
|
||||
pythonOlder,
|
||||
pyyaml,
|
||||
requests,
|
||||
stevedore,
|
||||
tqdm,
|
||||
typing-extensions,
|
||||
whoosh,
|
||||
}:
|
||||
|
||||
# tests
|
||||
docutils,
|
||||
git,
|
||||
pytestCheckHook,
|
||||
sphinx,
|
||||
sphinx-click,
|
||||
}:
|
||||
buildPythonPackage rec {
|
||||
pname = "papis";
|
||||
version = "0.13";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
version = "0.14";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "papis";
|
||||
repo = pname;
|
||||
repo = "papis";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-iRrf37hq+9D01JRaQIqg7yTPbLX6I0ZGnzG3r1DX464=";
|
||||
hash = "sha256-UpZoMYk4URN8tSFGIynVzWMk+9S0izROAgbx6uI2cN8=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
arxiv2bib
|
||||
build-system = [ hatchling ];
|
||||
|
||||
dependencies = [
|
||||
arxiv
|
||||
beautifulsoup4
|
||||
bibtexparser
|
||||
chardet
|
||||
click
|
||||
colorama
|
||||
configparser
|
||||
dominate
|
||||
filetype
|
||||
habanero
|
||||
isbnlib
|
||||
lxml
|
||||
platformdirs
|
||||
prompt-toolkit
|
||||
pygments
|
||||
pyparsing
|
||||
@ -65,52 +68,50 @@ buildPythonPackage rec {
|
||||
pyyaml
|
||||
requests
|
||||
stevedore
|
||||
tqdm
|
||||
typing-extensions
|
||||
whoosh
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.cfg \
|
||||
--replace "--cov=papis" ""
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace-fail "--cov=papis" ""
|
||||
'';
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
pythonImportsCheck = [ "papis" ];
|
||||
|
||||
nativeCheckInputs = [
|
||||
docutils
|
||||
git
|
||||
pytestCheckHook
|
||||
sphinx
|
||||
sphinx-click
|
||||
];
|
||||
|
||||
preCheck = ''
|
||||
export HOME=$(mktemp -d);
|
||||
'';
|
||||
|
||||
pytestFlagsArray = [ "papis tests" ];
|
||||
pytestFlagsArray = [
|
||||
"papis"
|
||||
"tests"
|
||||
];
|
||||
|
||||
disabledTestPaths = [
|
||||
# Require network access
|
||||
"tests/downloaders"
|
||||
"papis/downloaders/usenix.py"
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
"get_document_url"
|
||||
"match"
|
||||
"test_doi_to_data"
|
||||
"test_downloader_getter"
|
||||
"test_general"
|
||||
"test_get_config_dirs"
|
||||
"test_get_configuration"
|
||||
"test_get_data"
|
||||
"test_valid_dblp_key"
|
||||
"test_validate_arxivid"
|
||||
"test_yaml"
|
||||
] ++ lib.optionals stdenv.hostPlatform.isDarwin [ "test_default_opener" ];
|
||||
# Require network access
|
||||
"test_yaml_unicode_dump"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "papis" ];
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
description = "Powerful command-line document and bibliography manager";
|
||||
mainProgram = "papis";
|
||||
homepage = "https://papis.readthedocs.io/";
|
||||
changelog = "https://github.com/papis/papis/blob/v${version}/CHANGELOG.md";
|
||||
license = licenses.gpl3Only;
|
||||
maintainers = with maintainers; [
|
||||
license = lib.licenses.gpl3Only;
|
||||
maintainers = with lib.maintainers; [
|
||||
nico202
|
||||
teto
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user