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