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

38 lines
721 B
Nix
Raw Normal View History

2019-06-02 04:32:22 +01:00
{ lib
, buildPythonPackage
, fetchPypi
, isPy3k
, pythonOlder
2020-05-23 10:20:00 +01:00
, setuptools
2019-06-02 04:32:22 +01:00
, aenum
, pytest
, pytestcov
}:
buildPythonPackage rec {
pname = "pglast";
2020-11-29 14:04:36 +00:00
version = "1.14";
2019-06-02 04:32:22 +01:00
src = fetchPypi {
inherit pname version;
2020-11-29 14:04:36 +00:00
sha256 = "72652b9edc7bdbfc9c3192235fb2fa1b2fb73a681613368fcaec747d7f5e479f";
2019-06-02 04:32:22 +01:00
};
disabled = !isPy3k;
2020-05-23 10:20:00 +01:00
propagatedBuildInputs = [ setuptools ] ++ lib.optionals (pythonOlder "3.6") [ aenum ];
2019-06-02 04:32:22 +01:00
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 ];
};
}