mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
Merge pull request #172649 from r-ryantm/auto-update/python3.10-pglast
python310Packages.pglast: 3.9 -> 3.10
This commit is contained in:
commit
91bcc8830d
1 changed files with 13 additions and 9 deletions
|
@ -1,31 +1,35 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, isPy3k
|
, pythonOlder
|
||||||
, setuptools
|
, setuptools
|
||||||
, pytest
|
, pytest
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pglast";
|
pname = "pglast";
|
||||||
version = "3.9";
|
version = "3.10";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "sha256-fwXOfQW+ybhROdgayOAsgaFjf8HHh5jr5xczkBnA40w=";
|
hash = "sha256-rkoCtcBe5LBTTpmd+cj6s80UWXyTpMk74FipyK0t5go=";
|
||||||
};
|
};
|
||||||
|
|
||||||
disabled = !isPy3k;
|
propagatedBuildInputs = [
|
||||||
|
setuptools
|
||||||
# ModuleNotFoundError: No module named 'pkg_resources'
|
];
|
||||||
propagatedBuildInputs = [ setuptools ];
|
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace setup.cfg \
|
substituteInPlace setup.cfg \
|
||||||
--replace "--cov=pglast --cov-report term-missing" ""
|
--replace "--cov=pglast --cov-report term-missing" ""
|
||||||
'';
|
'';
|
||||||
|
|
||||||
checkInputs = [ pytest ];
|
checkInputs = [
|
||||||
|
pytest
|
||||||
|
];
|
||||||
|
|
||||||
# pytestCheckHook doesn't work
|
# pytestCheckHook doesn't work
|
||||||
# ImportError: cannot import name 'parse_sql' from 'pglast'
|
# ImportError: cannot import name 'parse_sql' from 'pglast'
|
||||||
|
@ -38,6 +42,6 @@ buildPythonPackage rec {
|
||||||
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";
|
changelog = "https://github.com/lelit/pglast/raw/v${version}/CHANGES.rst";
|
||||||
license = licenses.gpl3Plus;
|
license = licenses.gpl3Plus;
|
||||||
maintainers = [ maintainers.marsam ];
|
maintainers = with maintainers; [ marsam ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue