Merge pull request #62465 from marsam/init-pglast
pythonPackages.pglast: init at 1.4
This commit is contained in:
commit
0822701ffd
2 changed files with 38 additions and 0 deletions
36
pkgs/development/python-modules/pglast/default.nix
Normal file
36
pkgs/development/python-modules/pglast/default.nix
Normal file
|
@ -0,0 +1,36 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, isPy3k
|
||||
, pythonOlder
|
||||
, aenum
|
||||
, pytest
|
||||
, pytestcov
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pglast";
|
||||
version = "1.4";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1442ae2cfc6427e9a8fcc2dc18d9ecfcaa1b16eba237fdcf0b2b13912eab9a86";
|
||||
};
|
||||
|
||||
disabled = !isPy3k;
|
||||
|
||||
propagatedBuildInputs = lib.optionals (pythonOlder "3.6") [ aenum ];
|
||||
|
||||
checkInputs = [ pytest pytestcov ];
|
||||
|
||||
checkPhase = ''
|
||||
pytest
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/lelit/pglast";
|
||||
description = "PostgreSQL Languages AST and statements prettifier";
|
||||
license = licenses.gpl3Plus;
|
||||
maintainers = [ maintainers.marsam ];
|
||||
};
|
||||
}
|
|
@ -3728,6 +3728,8 @@ in {
|
|||
pg8000 = callPackage ../development/python-modules/pg8000 { };
|
||||
pg8000_1_12 = callPackage ../development/python-modules/pg8000/1_12.nix { };
|
||||
|
||||
pglast = callPackage ../development/python-modules/pglast { };
|
||||
|
||||
pgsanity = callPackage ../development/python-modules/pgsanity { };
|
||||
|
||||
pgspecial = callPackage ../development/python-modules/pgspecial { };
|
||||
|
|
Loading…
Reference in a new issue