depot/third_party/nixpkgs/pkgs/development/python-modules/pglast/default.nix
Default email 4fc29cb41f Project import generated by Copybara.
GitOrigin-RevId: 135073a87b7e2c631739f4ffa016e1859b1a425e
2020-05-29 08:06:01 +02:00

37 lines
721 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, isPy3k
, pythonOlder
, setuptools
, aenum
, pytest
, pytestcov
}:
buildPythonPackage rec {
pname = "pglast";
version = "1.11";
src = fetchPypi {
inherit pname version;
sha256 = "8463d60b9065daf26e3c0fa6e7515d2a4594847ab417be018858832a475105f1";
};
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 ];
};
}