python3Packages.papis: 0.9 -> 0.10, fix build
This commit is contained in:
parent
49f5b51ee3
commit
011dd50123
@ -1,9 +1,9 @@
|
|||||||
{ lib, buildPythonPackage, fetchFromGitHub, xdg_utils
|
{ lib, buildPythonPackage, fetchFromGitHub, xdg_utils
|
||||||
, requests, filetype, pyparsing, configparser, arxiv2bib
|
, requests, filetype, pyparsing, configparser, arxiv2bib
|
||||||
, pyyaml, chardet, beautifulsoup4, colorama, bibtexparser
|
, pyyaml, chardet, beautifulsoup4, colorama, bibtexparser
|
||||||
, pylibgen, click, python-slugify, habanero, isbnlib
|
, click, python-slugify, habanero, isbnlib, typing-extensions
|
||||||
, prompt_toolkit, pygments, stevedore, tqdm, lxml
|
, prompt_toolkit, pygments, stevedore, tqdm, lxml
|
||||||
, python-doi, isPy3k, pythonOlder
|
, python-doi, isPy3k, pythonOlder, pytestcov
|
||||||
#, optional, dependencies
|
#, optional, dependencies
|
||||||
, whoosh, pytest
|
, whoosh, pytest
|
||||||
, stdenv
|
, stdenv
|
||||||
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "papis";
|
pname = "papis";
|
||||||
version = "0.9";
|
version = "0.10";
|
||||||
disabled = !isPy3k;
|
disabled = !isPy3k;
|
||||||
|
|
||||||
# Missing tests on Pypi
|
# Missing tests on Pypi
|
||||||
@ -19,14 +19,14 @@ buildPythonPackage rec {
|
|||||||
owner = "papis";
|
owner = "papis";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "15i79q6nr7gcpcafdz5797axmp6r3081sys07k1k2vi5b2g3qc4k";
|
sha256 = "0fmrvxs6ixfwjlp96b69db7fpvyqfy2n3c23kdz8yr0vhnp82l93";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
requests filetype pyparsing configparser arxiv2bib
|
requests filetype pyparsing configparser arxiv2bib
|
||||||
pyyaml chardet beautifulsoup4 colorama bibtexparser
|
pyyaml chardet beautifulsoup4 colorama bibtexparser
|
||||||
pylibgen click python-slugify habanero isbnlib
|
click python-slugify habanero isbnlib
|
||||||
prompt_toolkit pygments
|
prompt_toolkit pygments typing-extensions
|
||||||
stevedore tqdm lxml
|
stevedore tqdm lxml
|
||||||
python-doi
|
python-doi
|
||||||
# optional dependencies
|
# optional dependencies
|
||||||
@ -36,6 +36,7 @@ buildPythonPackage rec {
|
|||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace setup.py \
|
substituteInPlace setup.py \
|
||||||
--replace "lxml<=4.3.5" "lxml~=4.3" \
|
--replace "lxml<=4.3.5" "lxml~=4.3" \
|
||||||
|
--replace "isbnlib>=3.9.1,<3.10" "isbnlib~=3.9" \
|
||||||
--replace "python-slugify>=1.2.6,<4" "python-slugify"
|
--replace "python-slugify>=1.2.6,<4" "python-slugify"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
@ -43,7 +44,7 @@ buildPythonPackage rec {
|
|||||||
doCheck = !stdenv.isDarwin && pythonOlder "3.8";
|
doCheck = !stdenv.isDarwin && pythonOlder "3.8";
|
||||||
|
|
||||||
checkInputs = ([
|
checkInputs = ([
|
||||||
pytest
|
pytest pytestcov
|
||||||
]) ++ [
|
]) ++ [
|
||||||
xdg_utils
|
xdg_utils
|
||||||
];
|
];
|
||||||
@ -54,7 +55,7 @@ buildPythonPackage rec {
|
|||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
HOME=$(mktemp -d) pytest papis tests --ignore tests/downloaders \
|
HOME=$(mktemp -d) pytest papis tests --ignore tests/downloaders \
|
||||||
-k "not test_get_data and not test_doi_to_data and not test_general and not get_document_url \
|
-k "not test_get_data and not test_doi_to_data and not test_general and not get_document_url \
|
||||||
and not test_validate_arxivid and not test_downloader_getter"
|
and not test_validate_arxivid and not test_downloader_getter and not match"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user