mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 17:43:42 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
35 lines
908 B
Nix
35 lines
908 B
Nix
{ lib
|
|
, python
|
|
, fetchPypi
|
|
, buildPythonPackage
|
|
, postgresql
|
|
, unittestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pgsanity";
|
|
version = "0.2.9";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "de0bbd6fe4f98bf5139cb5f466eac2e2abaf5a7b050b9e4867b87bf360873173";
|
|
};
|
|
|
|
nativeCheckInputs = [ unittestCheckHook postgresql ];
|
|
propagatedBuildInputs = [ postgresql ];
|
|
|
|
meta = with 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 = licenses.mit;
|
|
maintainers = with maintainers; [ nalbyuites ];
|
|
};
|
|
}
|