From cff78ccf5ed0df9a6cb00aa255f484e807ff0491 Mon Sep 17 00:00:00 2001 From: Jonathan Ringer Date: Mon, 25 Nov 2019 13:46:58 -0800 Subject: [PATCH] python3Packages.papis: remove restrictive version bounds --- pkgs/development/python-modules/papis/default.nix | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/papis/default.nix b/pkgs/development/python-modules/papis/default.nix index a2fd5118b3e033..f770fecd5e59a5 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