9 buildPythonPackage rec {
12 format = "setuptools";
14 disabled = pythonOlder "3.7";
17 inherit pname version;
18 hash = "sha256-yz6Q+Vt7ZuT9NaxuQQA+BH7U6Efaim7No6GJmnOQo1o=";
21 propagatedBuildInputs = [
26 substituteInPlace setup.cfg \
27 --replace "--cov=pglast --cov-report term-missing" ""
34 # pytestCheckHook doesn't work
35 # ImportError: cannot import name 'parse_sql' from 'pglast'
40 pythonImportsCheck = [
46 homepage = "https://github.com/lelit/pglast";
47 description = "PostgreSQL Languages AST and statements prettifier";
48 changelog = "https://github.com/lelit/pglast/blob/v${version}/CHANGES.rst";
49 license = licenses.gpl3Plus;
50 maintainers = with maintainers; [ marsam ];