Merge pull request #141531 from r-ryantm/auto-update/python38Packages.pglast
This commit is contained in:
commit
69a167091c
@ -3,27 +3,32 @@
|
||||
, fetchPypi
|
||||
, isPy3k
|
||||
, setuptools
|
||||
, pytest-cov
|
||||
, pytest
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pglast";
|
||||
version = "3.6";
|
||||
version = "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1594d536137b888556b7187d25355ba88b3a14ef0d8aacccef15bfed74cf0af9";
|
||||
sha256 = "3f0f36cebdb68d5b3aaacb11cbf09db44250194845fbf3b49b0aef93c30991bf";
|
||||
};
|
||||
|
||||
disabled = !isPy3k;
|
||||
|
||||
# ModuleNotFoundError: No module named 'pkg_resources'
|
||||
propagatedBuildInputs = [ setuptools ];
|
||||
|
||||
checkInputs = [ pytest pytest-cov ];
|
||||
postPatch = ''
|
||||
substituteInPlace setup.cfg \
|
||||
--replace "--cov=pglast --cov-report term-missing" ""
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [ "pglast" ];
|
||||
checkInputs = [ pytest ];
|
||||
|
||||
# pytestCheckHook doesn't work
|
||||
# ImportError: cannot import name 'parse_sql' from 'pglast'
|
||||
checkPhase = ''
|
||||
pytest
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user