depot/third_party/nixpkgs/pkgs/development/python-modules/pglast/default.nix
Default email 78efc47b99 Project import generated by Copybara.
GitOrigin-RevId: 83cbad92d73216bb0d9187c56cce0b91f9121d5a
2020-12-07 07:45:13 +00:00

37 lines
721 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, isPy3k
, pythonOlder
, setuptools
, aenum
, pytest
, pytestcov
}:
buildPythonPackage rec {
pname = "pglast";
version = "1.14";
src = fetchPypi {
inherit pname version;
sha256 = "72652b9edc7bdbfc9c3192235fb2fa1b2fb73a681613368fcaec747d7f5e479f";
};
disabled = !isPy3k;
propagatedBuildInputs = [ setuptools ] ++ 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 ];
};
}