summaryrefslogtreecommitdiffstats
path: root/krebs/5pkgs/simple/buildbot-classic
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2021-06-10 21:42:06 +0200
committertv <tv@krebsco.de>2021-06-10 21:42:06 +0200
commit0e6e8b7188b4a2aab7ca467cb20514a70ba09011 (patch)
treecfa9ab8a1a83e0dd139255cf7f7b29bf9a37fdf6 /krebs/5pkgs/simple/buildbot-classic
parent44c4cb6a453f5bc34c870caa6802548c099e9435 (diff)
parent04a081a3be600cc5e74aadd4f0fee899d6987a85 (diff)
Merge remote-tracking branch 'prism/master'
Diffstat (limited to 'krebs/5pkgs/simple/buildbot-classic')
-rw-r--r--krebs/5pkgs/simple/buildbot-classic/default.nix9
-rw-r--r--krebs/5pkgs/simple/buildbot-classic/sqlparse.nix34
2 files changed, 40 insertions, 3 deletions
diff --git a/krebs/5pkgs/simple/buildbot-classic/default.nix b/krebs/5pkgs/simple/buildbot-classic/default.nix
index c127d2987..5e075f1a1 100644
--- a/krebs/5pkgs/simple/buildbot-classic/default.nix
+++ b/krebs/5pkgs/simple/buildbot-classic/default.nix
@@ -1,6 +1,9 @@
-{ pkgs, fetchFromGitHub, python2Packages, git, ... }:
+{ pkgs, fetchFromGitHub, python2Packages, git, ... }: let
-python2Packages.buildPythonApplication rec {
+ # we need the old sqlparse since the new one is python2 incompatible
+ sqlparse = python2Packages.callPackage ./sqlparse.nix {};
+
+in python2Packages.buildPythonApplication rec {
name = "buildbot-classic-${version}";
version = "0.8.18";
namePrefix = "";
@@ -18,7 +21,7 @@ python2Packages.buildPythonApplication rec {
python2Packages.jinja2
python2Packages.twisted
python2Packages.dateutil
- python2Packages.sqlalchemy_migrate
+ (python2Packages.sqlalchemy_migrate.override { sqlparse = sqlparse; })
python2Packages.pysqlite
pkgs.coreutils
];
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;
+ };
+
+}