From d78a2b1ce9df168afd44f16ea07667d8e1e0732f Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Thu, 14 Jul 2016 11:44:05 +0200 Subject: [PATCH] pythonPackages.sqlparse: fix tests --- pkgs/top-level/python-packages.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 8d6f465b452..230d857d2c3 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -22179,6 +22179,14 @@ in modules // { sha256 = "1s2fvaxgh9kqzrd6iwy5h7i61ckn05plx9np13zby93z3hdbx5nq"; }; + buildInputs = with self; [ pytest ]; + checkPhase = '' + py.test + ''; + + # Package supports 3.x, but tests are clearly 2.x only. + doCheck = !isPy3k; + meta = { description = "Non-validating SQL parser for Python"; longDescription = ''