10 python = python3.override {
11 packageOverrides = self: super: {
12 antlr4-python3-runtime = super.antlr4-python3-runtime.override {
16 baserow_premium = self.buildPythonPackage rec {
17 pname = "baserow_premium";
19 format = "setuptools";
21 src = fetchFromGitLab {
24 rev = "refs/tags/${version}";
25 hash = "sha256-zT2afl3QNE2dO3JXjsZXqSmm1lv3EorG3mYZLQQMQ2Q=";
28 sourceRoot = "${src.name}/premium/backend";
33 django = super.django_3;
38 with python.pkgs; buildPythonApplication rec {
41 format = "setuptools";
43 src = fetchFromGitLab {
46 rev = "refs/tags/${version}";
47 hash = "sha256-zT2afl3QNE2dO3JXjsZXqSmm1lv3EorG3mYZLQQMQ2Q=";
50 sourceRoot = "${src.name}/backend";
53 # use input files to not depend on outdated peer dependencies
54 mv requirements/base.{in,txt}
55 mv requirements/dev.{in,txt}
57 # remove dependency constraints
58 sed -i requirements/base.txt \
59 -e 's/[~<>=].*//' -i requirements/base.txt \
60 -e 's/zope-interface/zope.interface/' \
68 propagatedBuildInputs = [
71 antlr4-python3-runtime
106 ] ++ uvicorn.optional-dependencies.standard;
109 wrapProgram $out/bin/baserow \
110 --prefix PYTHONPATH : "$PYTHONPATH" \
111 --prefix DJANGO_SETTINGS_MODULE : "baserow.config.settings.base"
114 nativeCheckInputs = [
119 openapi-spec-validator
129 cp -r src/baserow/contrib/database/{api,action,trash,formula,file_import} \
130 $out/${python.sitePackages}/baserow/contrib/database/
131 cp -r src/baserow/core/management/backup $out/${python.sitePackages}/baserow/core/management/
135 # Disable linting checks
139 disabledTestPaths = [
140 # Disable premium tests
141 "../premium/backend/src/baserow_premium"
142 "../premium/backend/tests/baserow_premium"
143 # Disable database related tests
144 "tests/baserow/contrib/database"
150 DJANGO_SETTINGS_MODULE = "baserow.config.settings.test";
153 description = "No-code database and Airtable alternative";
154 homepage = "https://baserow.io";
155 license = licenses.mit;
156 maintainers = with maintainers; [ onny ];
157 mainProgram = "baserow";