From a7aa69c8bf31d6f7731ccd94c8939658ccee67f3 Mon Sep 17 00:00:00 2001 From: edef Date: Fri, 4 Oct 2019 16:44:51 +0000 Subject: [PATCH 1/2] pythonPackages.pgsanity: add missing postgresql checkInput --- pkgs/development/python-modules/pgsanity/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/python-modules/pgsanity/default.nix b/pkgs/development/python-modules/pgsanity/default.nix index c6fa96bccf7..2e3bf29a9a9 100644 --- a/pkgs/development/python-modules/pgsanity/default.nix +++ b/pkgs/development/python-modules/pgsanity/default.nix @@ -17,6 +17,7 @@ buildPythonPackage rec { ${python.interpreter} -m unittest discover -s test ''; + checkInputs = [ postgresql ]; propagatedBuildInputs = [ postgresql ]; meta = with stdenv.lib; { From 625cad31bc2052ef6cb4c00e1147a6efada712ad Mon Sep 17 00:00:00 2001 From: worldofpeace Date: Fri, 18 Oct 2019 16:01:21 -0400 Subject: [PATCH 2/2] pythonPackages.pgsanity: don't mark broken --- pkgs/development/python-modules/pgsanity/default.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/pgsanity/default.nix b/pkgs/development/python-modules/pgsanity/default.nix index 2e3bf29a9a9..f7212493e59 100644 --- a/pkgs/development/python-modules/pgsanity/default.nix +++ b/pkgs/development/python-modules/pgsanity/default.nix @@ -25,13 +25,12 @@ buildPythonPackage rec { description = "Checks the syntax of Postgresql SQL files"; longDescription = '' PgSanity checks the syntax of Postgresql SQL files by - taking a file that has a list of bare SQL in it, - making that file look like a C file with embedded SQL, - run it through ecpg and + taking a file that has a list of bare SQL in it, + making that file look like a C file with embedded SQL, + run it through ecpg and let ecpg report on the syntax errors of the SQL. ''; license = stdenv.lib.licenses.mit; maintainers = with maintainers; [ nalbyuites ]; - broken = true; }; }