diff options
Diffstat (limited to 'pkgs/development/python-modules/arxiv2bib/default.nix')
-rw-r--r-- | pkgs/development/python-modules/arxiv2bib/default.nix | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/pkgs/development/python-modules/arxiv2bib/default.nix b/pkgs/development/python-modules/arxiv2bib/default.nix index 4dec50bbc67e3..54a6280017ae0 100644 --- a/pkgs/development/python-modules/arxiv2bib/default.nix +++ b/pkgs/development/python-modules/arxiv2bib/default.nix @@ -1,5 +1,8 @@ -{ buildPythonPackage, python, lib, fetchFromGitHub +{ buildPythonPackage +, lib +, fetchFromGitHub , mock +, unittestCheckHook }: buildPythonPackage rec { @@ -14,9 +17,8 @@ buildPythonPackage rec { sha256 = "1kp2iyx20lpc9dv4qg5fgwf83a1wx6f7hj1ldqyncg0kn9xcrhbg"; }; - checkInputs = [ mock ]; - - checkPhase = "${python.interpreter} -m unittest discover -s tests"; + checkInputs = [ unittestCheckHook mock ]; + unittestFlagsArray = [ "-s" "tests" ]; meta = with lib; { description = "Get a BibTeX entry from an arXiv id number, using the arxiv.org API"; |