about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJonathan Ringer <jonringer117@gmail.com>2019-11-25 13:46:58 -0800
committerJon <jonringer@users.noreply.github.com>2019-11-27 19:27:32 -0800
commite0907e2ae9ae541cb7c2257a7d0e095dab67463a (patch)
tree52f71a590e21c01b58856910d579b9e68ccc8759
parentcbe6c3a79c9e69e19cfaefc7840b94fe73ef3fc5 (diff)
downloadnixlib-e0907e2ae9ae541cb7c2257a7d0e095dab67463a.tar
nixlib-e0907e2ae9ae541cb7c2257a7d0e095dab67463a.tar.gz
nixlib-e0907e2ae9ae541cb7c2257a7d0e095dab67463a.tar.bz2
nixlib-e0907e2ae9ae541cb7c2257a7d0e095dab67463a.tar.lz
nixlib-e0907e2ae9ae541cb7c2257a7d0e095dab67463a.tar.xz
nixlib-e0907e2ae9ae541cb7c2257a7d0e095dab67463a.tar.zst
nixlib-e0907e2ae9ae541cb7c2257a7d0e095dab67463a.zip
python3Packages.papis: remove restrictive version bounds
-rw-r--r--pkgs/development/python-modules/papis/default.nix12
1 files changed, 9 insertions, 3 deletions
diff --git a/pkgs/development/python-modules/papis/default.nix b/pkgs/development/python-modules/papis/default.nix
index a2fd5118b3e0..f770fecd5e59 100644
--- a/pkgs/development/python-modules/papis/default.nix
+++ b/pkgs/development/python-modules/papis/default.nix
@@ -3,7 +3,7 @@
 , pyyaml, chardet, beautifulsoup4, colorama, bibtexparser
 , pylibgen, click, python-slugify, habanero, isbnlib
 , prompt_toolkit, pygments, stevedore, tqdm, lxml
-, python-doi, isPy3k
+, python-doi, isPy3k, pythonOlder
 #, optional, dependencies
 , whoosh, pytest
 , stdenv
@@ -12,6 +12,7 @@
 buildPythonPackage rec {
   pname = "papis";
   version = "0.9";
+  disabled = !isPy3k;
 
   # Missing tests on Pypi
   src = fetchFromGitHub {
@@ -32,9 +33,14 @@ buildPythonPackage rec {
     whoosh
   ];
 
-  disabled = !isPy3k;
+  postPatch = ''
+    substituteInPlace setup.py \
+      --replace "lxml<=4.3.5" "lxml~=4.3" \
+      --replace "python-slugify>=1.2.6,<4" "python-slugify"
+  '';
 
-  doCheck = !stdenv.isDarwin;
+  # pytest seems to hang with python3.8
+  doCheck = !stdenv.isDarwin && pythonOlder "3.8";
 
   checkInputs = ([
     pytest