python38Packages.pglast: 3.6 -> 3.7

This commit is contained in:
R. RyanTM 2021-10-13 15:40:15 +00:00 committed by Artturin
parent 2ae14350dd
commit c70619eec8

View File

@ -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
'';