Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: b36bf7e2e22b
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 0822701ffde8
Choose a head ref
  • 2 commits
  • 2 files changed
  • 1 contributor

Commits on Jun 2, 2019

  1. Copy the full SHA
    5c162f5 View commit details

Commits on Jun 3, 2019

  1. Merge pull request #62465 from marsam/init-pglast

    pythonPackages.pglast: init at 1.4
    marsam authored Jun 3, 2019
    Copy the full SHA
    0822701 View commit details
Showing with 38 additions and 0 deletions.
  1. +36 −0 pkgs/development/python-modules/pglast/default.nix
  2. +2 −0 pkgs/top-level/python-packages.nix
36 changes: 36 additions & 0 deletions pkgs/development/python-modules/pglast/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{ lib
, buildPythonPackage
, fetchPypi
, isPy3k
, pythonOlder
, aenum
, pytest
, pytestcov
}:

buildPythonPackage rec {
pname = "pglast";
version = "1.4";

src = fetchPypi {
inherit pname version;
sha256 = "1442ae2cfc6427e9a8fcc2dc18d9ecfcaa1b16eba237fdcf0b2b13912eab9a86";
};

disabled = !isPy3k;

propagatedBuildInputs = lib.optionals (pythonOlder "3.6") [ aenum ];

checkInputs = [ pytest pytestcov ];

checkPhase = ''
pytest
'';

meta = with lib; {
homepage = "https://github.com/lelit/pglast";
description = "PostgreSQL Languages AST and statements prettifier";
license = licenses.gpl3Plus;
maintainers = [ maintainers.marsam ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
@@ -3728,6 +3728,8 @@ in {
pg8000 = callPackage ../development/python-modules/pg8000 { };
pg8000_1_12 = callPackage ../development/python-modules/pg8000/1_12.nix { };

pglast = callPackage ../development/python-modules/pglast { };

pgsanity = callPackage ../development/python-modules/pgsanity { };

pgspecial = callPackage ../development/python-modules/pgspecial { };