papis: 0.7.5 -> 0.8.1

This commit is contained in:
Robert Schütz 2019-02-27 13:58:43 +01:00
parent 8913ba2a8d
commit 9e10cd4fe5

View File

@ -4,29 +4,23 @@
python3.pkgs.buildPythonApplication rec {
pname = "papis";
version = "0.7.5";
version = "0.8.1";
# Missing tests on Pypi
src = fetchFromGitHub {
owner = "papis";
repo = pname;
rev = "v${version}";
sha256 = "1b481sj92z9nw7gwbrpkgd4nlmqc1n73qilkc51k2r56cy1kjvss";
};
# Update click version to 7.0.0
patches = fetchpatch {
url = https://github.com/papis/papis/commit/fddb80978a37a229300b604c26e992e2dc90913f.patch;
sha256 = "0cmagfdaaml1pxhnxggifpb47z5g1p231qywnvnqpd3dm93382w1";
sha256 = "05l33fhp7iq5mv63mgn9mh2c4grr84szfgm5x0m2bh2mj8g1p8a7";
};
propagatedBuildInputs = with python3.pkgs; [
click requests filetype pyparsing configparser
arxiv2bib pyyaml chardet beautifulsoup4 prompt_toolkit
bibtexparser python-slugify pyparser pylibgen
habanero isbnlib
requests filetype pyparsing configparser arxiv2bib
pyyaml chardet beautifulsoup4 colorama bibtexparser
pylibgen click python-slugify habanero isbnlib
prompt_toolkit pygments
# optional dependencies
dmenu-python whoosh
jinja2 whoosh
];
postInstall = ''
@ -39,14 +33,12 @@ python3.pkgs.buildPythonApplication rec {
xdg_utils
];
# most of the downloader tests require a network connection
# most of the downloader tests and 4 other tests require a network connection
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"
'';
# FIXME: find out why 39 tests fail
doCheck = false;
meta = {
description = "Powerful command-line document and bibliography manager";
homepage = http://papis.readthedocs.io/en/latest/;