diff options
Diffstat (limited to 'pkgs/development/python-modules/pglast/default.nix')
-rw-r--r-- | pkgs/development/python-modules/pglast/default.nix | 34 |
1 files changed, 16 insertions, 18 deletions
diff --git a/pkgs/development/python-modules/pglast/default.nix b/pkgs/development/python-modules/pglast/default.nix index 7e5208c1bcd7..0efd11578651 100644 --- a/pkgs/development/python-modules/pglast/default.nix +++ b/pkgs/development/python-modules/pglast/default.nix @@ -1,34 +1,32 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, setuptools -, pytest +{ + lib, + buildPythonPackage, + fetchPypi, + pytest-cov-stub, + pytest, + pythonOlder, + setuptools, }: buildPythonPackage rec { pname = "pglast"; - version = "6.2"; - format = "setuptools"; + version = "6.6"; + pyproject = true; disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - hash = "sha256-mGP7o52Wun6AdE2jMAJBmLR10EmN50qzbMzB06BFXMg="; + hash = "sha256-NMM/O7SIunsfh1aSKArAmcXQR638HwBFrMjva+muDt8="; }; - propagatedBuildInputs = [ - setuptools - ]; + build-system = [ setuptools ]; - postPatch = '' - substituteInPlace setup.cfg \ - --replace "--cov=pglast --cov-report term-missing" "" - ''; + dependencies = [ setuptools ]; nativeCheckInputs = [ pytest + pytest-cov-stub ]; # pytestCheckHook doesn't work @@ -43,11 +41,11 @@ buildPythonPackage rec { ]; meta = with lib; { - homepage = "https://github.com/lelit/pglast"; description = "PostgreSQL Languages AST and statements prettifier"; + homepage = "https://github.com/lelit/pglast"; changelog = "https://github.com/lelit/pglast/blob/v${version}/CHANGES.rst"; license = licenses.gpl3Plus; - maintainers = with maintainers; [ ]; + maintainers = [ ]; mainProgram = "pgpp"; }; } |