5aa4b19946
Refs: e6754980264fe927320d5ff2dbd24ca4fac9a160 1e9cc5b9844ef603fe160e9f671178f96200774f 793a2fe1e8bb886ca2096c5904e1193dc3268b6d c19cf65261639f749012454932a532aa7c681e4b f6544d618f30fae0bc4798c4387a8c7c9c047a7c
36 lines
955 B
Nix
36 lines
955 B
Nix
{ 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 = "https://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 ];
|
|
broken = true;
|
|
};
|
|
}
|