about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthieu Coudron <mattator@gmail.com>2019-10-23 13:14:17 +0900
committerJon <jonringer@users.noreply.github.com>2019-10-22 23:19:56 -0700
commitb87fc8433581c021543e15c007b5045531c451c8 (patch)
treeaca8733f70fe16f6469bee29e495bce28ac6e4ad
parentd0e33f172d3584cdb84d7e362106343f7f7ad33b (diff)
downloadnixlib-b87fc8433581c021543e15c007b5045531c451c8.tar
nixlib-b87fc8433581c021543e15c007b5045531c451c8.tar.gz
nixlib-b87fc8433581c021543e15c007b5045531c451c8.tar.bz2
nixlib-b87fc8433581c021543e15c007b5045531c451c8.tar.lz
nixlib-b87fc8433581c021543e15c007b5045531c451c8.tar.xz
nixlib-b87fc8433581c021543e15c007b5045531c451c8.tar.zst
nixlib-b87fc8433581c021543e15c007b5045531c451c8.zip
python3Packages.papis: 0.8.2 -> 0.9
Many breaking changes, see the Changelog.
-rw-r--r--pkgs/development/python-modules/papis/default.nix18
1 files changed, 12 insertions, 6 deletions
diff --git a/pkgs/development/python-modules/papis/default.nix b/pkgs/development/python-modules/papis/default.nix
index b2ae7cf73ed9..a2fd5118b3e0 100644
--- a/pkgs/development/python-modules/papis/default.nix
+++ b/pkgs/development/python-modules/papis/default.nix
@@ -2,22 +2,23 @@
 , requests, filetype, pyparsing, configparser, arxiv2bib
 , pyyaml, chardet, beautifulsoup4, colorama, bibtexparser
 , pylibgen, click, python-slugify, habanero, isbnlib
-, prompt_toolkit, pygments
+, prompt_toolkit, pygments, stevedore, tqdm, lxml
+, python-doi, isPy3k
 #, optional, dependencies
-, jinja2, whoosh, pytest
+, whoosh, pytest
 , stdenv
 }:
 
 buildPythonPackage rec {
   pname = "papis";
-  version = "0.8.2";
+  version = "0.9";
 
   # Missing tests on Pypi
   src = fetchFromGitHub {
     owner = "papis";
     repo = pname;
     rev = "v${version}";
-    sha256 = "0sa4hpgjvqkjcmp9bjr27b5m5jg4pfspdc8nf1ny80sr0kzn72hb";
+    sha256 = "kzA8nlglbjHDPEB7HRAY2dza1Umn/OYUu+ydbA1OJ5Y=";
   };
 
   propagatedBuildInputs = [
@@ -25,10 +26,14 @@ buildPythonPackage rec {
     pyyaml chardet beautifulsoup4 colorama bibtexparser
     pylibgen click python-slugify habanero isbnlib
     prompt_toolkit pygments
+    stevedore tqdm lxml
+    python-doi
     # optional dependencies
-    jinja2 whoosh
+    whoosh
   ];
 
+  disabled = !isPy3k;
+
   doCheck = !stdenv.isDarwin;
 
   checkInputs = ([
@@ -42,7 +47,8 @@ buildPythonPackage rec {
   # fail with 5.x
   checkPhase = ''
     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 and not test_export_yaml and not test_citations"
+      -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"
   '';
 
   meta = {