From 9e10cd4fe5f1c921477888a353e4abd809379234 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Wed, 27 Feb 2019 13:58:43 +0100 Subject: [PATCH] papis: 0.7.5 -> 0.8.1 --- pkgs/tools/misc/papis/default.nix | 28 ++++++++++------------------ 1 file changed, 10 insertions(+), 18 deletions(-) diff --git a/pkgs/tools/misc/papis/default.nix b/pkgs/tools/misc/papis/default.nix index 282d64befb7f79..77ead3de090194 100644 --- a/pkgs/tools/misc/papis/default.nix +++ b/pkgs/tools/misc/papis/default.nix @@ -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/;