mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
35521b42c2
* python-psycopg2: update from 2.7.7 to 2.8.3 * python-sqlparse: update from 0.2.4 to 0.3.0 * pgcli: update from 2.0.2 to 2.1.1
35 lines
690 B
Nix
35 lines
690 B
Nix
{ stdenv
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pytest
|
|
, isPy3k
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "sqlparse";
|
|
version = "0.3.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "0wxqrm9fpn4phz6rqm7kfd1wwkwzx376gs27nnalwx12q0lwlgbw";
|
|
};
|
|
|
|
checkInputs = [ pytest ];
|
|
checkPhase = ''
|
|
py.test
|
|
'';
|
|
|
|
# Package supports 3.x, but tests are clearly 2.x only.
|
|
doCheck = !isPy3k;
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Non-validating SQL parser for Python";
|
|
longDescription = ''
|
|
Provides support for parsing, splitting and formatting SQL statements.
|
|
'';
|
|
homepage = https://github.com/andialbrecht/sqlparse;
|
|
license = licenses.bsd3;
|
|
};
|
|
|
|
}
|