Merge pull request #172649 from r-ryantm/auto-update/python3.10-pglast

python310Packages.pglast: 3.9 -> 3.10

authored by Mario Rodas and committed by GitHub 91bcc883 d002de0a

+13 -9
+13 -9
pkgs/development/python-modules/pglast/default.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 3 , fetchPypi 4 - , isPy3k 4 + , pythonOlder 5 5 , setuptools 6 6 , pytest 7 7 }: 8 8 9 9 buildPythonPackage rec { 10 10 pname = "pglast"; 11 - version = "3.9"; 11 + version = "3.10"; 12 + format = "setuptools"; 13 + 14 + disabled = pythonOlder "3.7"; 12 15 13 16 src = fetchPypi { 14 17 inherit pname version; 15 - sha256 = "sha256-fwXOfQW+ybhROdgayOAsgaFjf8HHh5jr5xczkBnA40w="; 18 + hash = "sha256-rkoCtcBe5LBTTpmd+cj6s80UWXyTpMk74FipyK0t5go="; 16 19 }; 17 20 18 - disabled = !isPy3k; 19 - 20 - # ModuleNotFoundError: No module named 'pkg_resources' 21 - propagatedBuildInputs = [ setuptools ]; 21 + propagatedBuildInputs = [ 22 + setuptools 23 + ]; 22 24 23 25 postPatch = '' 24 26 substituteInPlace setup.cfg \ 25 27 --replace "--cov=pglast --cov-report term-missing" "" 26 28 ''; 27 29 28 - checkInputs = [ pytest ]; 30 + checkInputs = [ 31 + pytest 32 + ]; 29 33 30 34 # pytestCheckHook doesn't work 31 35 # ImportError: cannot import name 'parse_sql' from 'pglast' ··· 38 42 description = "PostgreSQL Languages AST and statements prettifier"; 39 43 changelog = "https://github.com/lelit/pglast/raw/v${version}/CHANGES.rst"; 40 44 license = licenses.gpl3Plus; 41 - maintainers = [ maintainers.marsam ]; 45 + maintainers = with maintainers; [ marsam ]; 42 46 }; 43 47 }