diff options
author | lassulus <lassulus@lassul.us> | 2021-06-09 22:20:33 +0200 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2021-06-09 22:20:33 +0200 |
commit | d8d6fe24a0d4de0b6a1c3d20b9eac11031b0eaae (patch) | |
tree | 851054e5377811e708a1abc4b65abd6e38c9deff /krebs/5pkgs/simple/buildbot-classic/sqlparse.nix | |
parent | ca4f0024cc5538eac13b26baf8a9860feeef03d9 (diff) |
buildbot-classic: fix build on 21.05
Diffstat (limited to 'krebs/5pkgs/simple/buildbot-classic/sqlparse.nix')
-rw-r--r-- | krebs/5pkgs/simple/buildbot-classic/sqlparse.nix | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/krebs/5pkgs/simple/buildbot-classic/sqlparse.nix b/krebs/5pkgs/simple/buildbot-classic/sqlparse.nix new file mode 100644 index 000000000..b6aee633e --- /dev/null +++ b/krebs/5pkgs/simple/buildbot-classic/sqlparse.nix @@ -0,0 +1,34 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, pytest +, isPy3k +}: + +buildPythonPackage rec { + pname = "sqlparse"; + version = "0.3.1"; + + src = fetchPypi { + inherit pname version; + sha256 = "e162203737712307dfe78860cc56c8da8a852ab2ee33750e33aeadf38d12c548"; + }; + + 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; + }; + +} |