nixpkgs/pkgs/development/python-modules/pglast/default.nix

37 lines
689 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";
2019-12-19 19:31:17 +00:00
version = "1.8";
2019-06-02 04:32:22 +01:00
src = fetchPypi {
inherit pname version;
2019-12-19 19:31:17 +00:00
sha256 = "115067100fbb9eb36f530d94b64b4e1e36a8d304537af0847d562ff9ed399c05";
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 ];
};
}