depot/third_party/nixpkgs/pkgs/development/python-modules/pglast/default.nix
Default email f61cd259d4 Project import generated by Copybara.
GitOrigin-RevId: 82155ff501c7622cb2336646bb62f7624261f6d7
2021-10-01 17:20:50 +08:00

38 lines
770 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, isPy3k
, setuptools
, pytest-cov
, pytest
}:
buildPythonPackage rec {
pname = "pglast";
version = "3.5";
src = fetchPypi {
inherit pname version;
sha256 = "3bb74df084b149e8bf969380d88b1980fbd1aeda7f7057f4dee6751d854d6ae6";
};
disabled = !isPy3k;
propagatedBuildInputs = [ setuptools ];
checkInputs = [ pytest pytest-cov ];
pythonImportsCheck = [ "pglast" ];
checkPhase = ''
pytest
'';
meta = with lib; {
homepage = "https://github.com/lelit/pglast";
description = "PostgreSQL Languages AST and statements prettifier";
changelog = "https://github.com/lelit/pglast/raw/v${version}/CHANGES.rst";
license = licenses.gpl3Plus;
maintainers = [ maintainers.marsam ];
};
}