3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/pglast/default.nix

37 lines
690 B
Nix
Raw Normal View History

2019-06-02 04:32:22 +01:00
{ lib
, buildPythonPackage
, fetchPypi
, isPy3k
, pythonOlder
, aenum
, pytest
, pytestcov
}:
buildPythonPackage rec {
pname = "pglast";
2020-04-04 10:20:00 +01:00
version = "1.10";
2019-06-02 04:32:22 +01:00
src = fetchPypi {
inherit pname version;
2020-04-04 10:20:00 +01:00
sha256 = "a26ba77127b363446955e8a5317b3194defb1c1bb9d2ed5e7d4830fd4f066d97";
2019-06-02 04:32:22 +01:00
};
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 ];
};
}