2018-10-27 22:45:54 +01:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytest
|
|
|
|
, isPy3k
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sqlparse";
|
2020-05-23 10:20:00 +01:00
|
|
|
version = "0.3.1";
|
2018-10-27 22:45:54 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-05-23 10:20:00 +01:00
|
|
|
sha256 = "e162203737712307dfe78860cc56c8da8a852ab2ee33750e33aeadf38d12c548";
|
2018-10-27 22:45:54 +01:00
|
|
|
};
|
|
|
|
|
2019-01-05 10:54:27 +00:00
|
|
|
checkInputs = [ pytest ];
|
2018-10-27 22:45:54 +01:00
|
|
|
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.
|
|
|
|
'';
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/andialbrecht/sqlparse";
|
2018-10-27 22:45:54 +01:00
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|