summary refs log tree commit diff
path: root/pkgs/development/python-modules/pglast
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2019-06-01 22:32:22 -0500
committerMario Rodas <marsam@users.noreply.github.com>2019-06-01 22:32:22 -0500
commit5c162f524e4073320a91b6f9c8d0defb79ba49b7 (patch)
tree1e4ad2c8f31e81a77551f14c20ce59ec74a7893f /pkgs/development/python-modules/pglast
parent6b1e29d42728a5ec28147c1e59bbb193c7014f3f (diff)
downloadnixpkgs-5c162f524e4073320a91b6f9c8d0defb79ba49b7.tar
nixpkgs-5c162f524e4073320a91b6f9c8d0defb79ba49b7.tar.gz
nixpkgs-5c162f524e4073320a91b6f9c8d0defb79ba49b7.tar.bz2
nixpkgs-5c162f524e4073320a91b6f9c8d0defb79ba49b7.tar.lz
nixpkgs-5c162f524e4073320a91b6f9c8d0defb79ba49b7.tar.xz
nixpkgs-5c162f524e4073320a91b6f9c8d0defb79ba49b7.tar.zst
nixpkgs-5c162f524e4073320a91b6f9c8d0defb79ba49b7.zip
pythonPackages.pglast: init at 1.4
Diffstat (limited to 'pkgs/development/python-modules/pglast')
-rw-r--r--pkgs/development/python-modules/pglast/default.nix36
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pglast/default.nix b/pkgs/development/python-modules/pglast/default.nix
new file mode 100644
index 00000000000..bfa6c301a7b
--- /dev/null
+++ b/pkgs/development/python-modules/pglast/default.nix
@@ -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 ];
+  };
+}