Merge pull request #53733 from nalbyuites/pgsanity

pgsanity: init at 0.2.9
This commit is contained in:
Maximilian Bosch 2019-01-10 14:12:15 +01:00 committed by GitHub
commit b936b2ddac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 42 additions and 0 deletions

View file

@ -3062,6 +3062,11 @@
github = "nadrieril";
name = "Nadrieril Feneanar";
};
nalbyuites = {
email = "ashijit007@gmail.com";
github = "nalbyuites";
name = "Ashijit Pramanik";
};
namore = {
email = "namor@hemio.de";
github = "namore";

View file

@ -0,0 +1,35 @@
{ stdenv
, python
, fetchPypi
, buildPythonPackage
, postgresql }:
buildPythonPackage rec {
pname = "pgsanity";
version = "0.2.9";
src = fetchPypi {
inherit pname version;
sha256 = "de0bbd6fe4f98bf5139cb5f466eac2e2abaf5a7b050b9e4867b87bf360873173";
};
checkPhase = ''
${python.interpreter} -m unittest discover -s test
'';
propagatedBuildInputs = [ postgresql ];
meta = with stdenv.lib; {
homepage = "http://github.com/markdrago/pgsanity";
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
let ecpg report on the syntax errors of the SQL.
'';
license = stdenv.lib.licenses.mit;
maintainers = with maintainers; [ nalbyuites ];
};
}

View file

@ -3398,6 +3398,8 @@ in {
pg8000 = callPackage ../development/python-modules/pg8000 { };
pgsanity = callPackage ../development/python-modules/pgsanity { };
pgspecial = callPackage ../development/python-modules/pgspecial { };
pickleshare = callPackage ../development/python-modules/pickleshare { };