baserow: Use antlr4_9 in antlr4-python3-runtime

and use buildPythonApplication for the package.
This commit is contained in:
Martin Weinelt 2022-12-26 19:25:11 +01:00
parent e98704b197
commit 9de9273f33
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

@ -2,30 +2,38 @@
, fetchFromGitLab
, makeWrapper
, python3
, antlr4_9
}:
let
baserow_premium = with python3.pkgs; ( buildPythonPackage rec {
pname = "baserow_premium";
version = "1.12.1";
foramt = "setuptools";
python = python3.override {
packageOverrides = self: super: {
antlr4-python3-runtime = super.antlr4-python3-runtime.override {
antlr4 = antlr4_9;
};
src = fetchFromGitLab {
owner = "bramw";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-zT2afl3QNE2dO3JXjsZXqSmm1lv3EorG3mYZLQQMQ2Q=";
baserow_premium = self.buildPythonPackage rec {
pname = "baserow_premium";
version = "1.12.1";
foramt = "setuptools";
src = fetchFromGitLab {
owner = "bramw";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-zT2afl3QNE2dO3JXjsZXqSmm1lv3EorG3mYZLQQMQ2Q=";
};
sourceRoot = "source/premium/backend";
doCheck = false;
};
};
sourceRoot = "source/premium/backend";
doCheck = false;
});
};
in
with python3.pkgs; buildPythonPackage rec {
with python.pkgs; buildPythonApplication rec {
pname = "baserow";
version = "1.12.1";
format = "setuptools";