diff --git a/pkgs/tools/misc/papis/default.nix b/pkgs/tools/misc/papis/default.nix index de69712eb5e..98713c57140 100644 --- a/pkgs/tools/misc/papis/default.nix +++ b/pkgs/tools/misc/papis/default.nix @@ -1,39 +1,43 @@ { buildPythonApplication, lib, fetchFromGitHub , argcomplete, arxiv2bib, beautifulsoup4, bibtexparser -, configparser, habanero, papis-python-rofi, pylibgen -, prompt_toolkit, pyparser, python_magic, pyyaml -, requests, unidecode, urwid, vobject, tkinter +, configparser, dmenu-python, habanero, papis-python-rofi +, pylibgen, prompt_toolkit, pyparser, pytest, python_magic +, pyyaml, requests, unidecode, urwid, vobject, tkinter , vim }: buildPythonApplication rec { pname = "papis"; - version = "0.5.2"; + version = "0.5.3"; # Missing tests on Pypi src = fetchFromGitHub { owner = "alejandrogallo"; repo = pname; rev = "v${version}"; - sha256 = "0cw6ajdaknijka3j2bkkkn0bcxqifk825kq0a0rdbbmc6661pgxb"; + sha256 = "1yc4ilb7bw099pi2vwawyf8mi0n1kp87wgwgwcwc841ibq62q8ic"; }; postPatch = "sed -i 's/configparser>=3.0.0/# configparser>=3.0.0/' setup.py"; propagatedBuildInputs = [ argcomplete arxiv2bib beautifulsoup4 bibtexparser - configparser habanero papis-python-rofi pylibgen - prompt_toolkit pyparser python_magic pyyaml + configparser dmenu-python habanero papis-python-rofi + pylibgen prompt_toolkit pyparser python_magic pyyaml requests unidecode urwid vobject tkinter vim ]; + checkInputs = [ pytest ]; + # Papis tries to create the config folder under $HOME during the tests - preCheck = '' + checkPhase = '' mkdir -p check-phase export HOME=$(pwd)/check-phase - ''; + make test + make test-non-pythonic + ''; meta = { description = "Powerful command-line document and bibliography manager";