mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-10 22:24:40 +00:00
Merge pull request #125755 from marsam/update-pglast
python38Packages.pglast: 1.17 -> 3.0
This commit is contained in:
commit
bc444ca596
@ -1,29 +1,33 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchFromGitHub
|
||||||
, isPy3k
|
, isPy3k
|
||||||
, pythonOlder
|
|
||||||
, setuptools
|
, setuptools
|
||||||
, aenum
|
|
||||||
, pytest
|
|
||||||
, pytestcov
|
, pytestcov
|
||||||
|
, pytest
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pglast";
|
pname = "pglast";
|
||||||
version = "1.17";
|
version = "3.0";
|
||||||
|
|
||||||
src = fetchPypi {
|
# PyPI tarball does not include all the required files
|
||||||
inherit pname version;
|
src = fetchFromGitHub {
|
||||||
sha256 = "2979b38ca5f72cfa0a5db78af2f62d04db6a7647ee7f03eac7a67f9e86e3f5f9";
|
owner = "lelit";
|
||||||
|
repo = pname;
|
||||||
|
rev = "v${version}";
|
||||||
|
fetchSubmodules = true;
|
||||||
|
sha256 = "0yi24wj19rzw5dvppm8g3hnfskyzbrqw14q8x9f2q5zi8g6xnnrd";
|
||||||
};
|
};
|
||||||
|
|
||||||
disabled = !isPy3k;
|
disabled = !isPy3k;
|
||||||
|
|
||||||
propagatedBuildInputs = [ setuptools ] ++ lib.optionals (pythonOlder "3.6") [ aenum ];
|
propagatedBuildInputs = [ setuptools ];
|
||||||
|
|
||||||
checkInputs = [ pytest pytestcov ];
|
checkInputs = [ pytest pytestcov ];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "pglast" ];
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
pytest
|
pytest
|
||||||
'';
|
'';
|
||||||
@ -31,6 +35,7 @@ buildPythonPackage rec {
|
|||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/lelit/pglast";
|
homepage = "https://github.com/lelit/pglast";
|
||||||
description = "PostgreSQL Languages AST and statements prettifier";
|
description = "PostgreSQL Languages AST and statements prettifier";
|
||||||
|
changelog = "https://github.com/lelit/pglast/raw/v${version}/CHANGES.rst";
|
||||||
license = licenses.gpl3Plus;
|
license = licenses.gpl3Plus;
|
||||||
maintainers = [ maintainers.marsam ];
|
maintainers = [ maintainers.marsam ];
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user