python38Packages.pglast: 3.6 -> 3.7

authored by R. RyanTM and committed by Artturin c70619ee 2ae14350

+10 -5
+10 -5
pkgs/development/python-modules/pglast/default.nix
··· 3 3 , fetchPypi 4 4 , isPy3k 5 5 , setuptools 6 - , pytest-cov 7 6 , pytest 8 7 }: 9 8 10 9 buildPythonPackage rec { 11 10 pname = "pglast"; 12 - version = "3.6"; 11 + version = "3.7"; 13 12 14 13 src = fetchPypi { 15 14 inherit pname version; 16 - sha256 = "1594d536137b888556b7187d25355ba88b3a14ef0d8aacccef15bfed74cf0af9"; 15 + sha256 = "3f0f36cebdb68d5b3aaacb11cbf09db44250194845fbf3b49b0aef93c30991bf"; 17 16 }; 18 17 19 18 disabled = !isPy3k; 20 19 20 + # ModuleNotFoundError: No module named 'pkg_resources' 21 21 propagatedBuildInputs = [ setuptools ]; 22 22 23 - checkInputs = [ pytest pytest-cov ]; 23 + postPatch = '' 24 + substituteInPlace setup.cfg \ 25 + --replace "--cov=pglast --cov-report term-missing" "" 26 + ''; 24 27 25 - pythonImportsCheck = [ "pglast" ]; 28 + checkInputs = [ pytest ]; 26 29 30 + # pytestCheckHook doesn't work 31 + # ImportError: cannot import name 'parse_sql' from 'pglast' 27 32 checkPhase = '' 28 33 pytest 29 34 '';