baserow: port to poetry2nix

This commit is contained in:
Luke Granger-Brown 2023-04-02 01:20:15 +00:00
parent ed0c4a69f0
commit c684c5ffd0
59 changed files with 3254 additions and 1445 deletions

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3 #!/usr/bin/env python3
import sys import sys
from celery.__main__ import main from celery.__main__ import main
if __name__ == '__main__': if __name__ == '__main__':

3034
nix/pkgs/baserow/backend/poetry.lock generated Normal file

File diff suppressed because it is too large Load diff

View file

@ -1,106 +0,0 @@
self: super: {
django-timezone-field = self.callPackage ./packages/django-timezone-field { };
asgiref = self.callPackage ./packages/asgiref { };
incremental = self.callPackage ./packages/incremental { };
daphne = self.callPackage ./packages/daphne { };
channels-redis = self.callPackage ./packages/channels-redis { };
channels = self.callPackage ./packages/channels { };
aioredis = self.callPackage ./packages/aioredis { };
anyio = self.callPackage ./packages/anyio { };
certifi = self.callPackage ./packages/certifi { };
baserow-backend = self.callPackage ./packages/baserow-backend { };
requests = self.callPackage ./packages/requests { };
python-crontab = self.callPackage ./packages/python-crontab { };
drf-spectacular = self.callPackage ./packages/drf-spectacular { };
itsdangerous = self.callPackage ./packages/itsdangerous { };
s3transfer = self.callPackage ./packages/s3transfer { };
django-storages = self.callPackage ./packages/django-storages { };
django-cors-headers = self.callPackage ./packages/django-cors-headers { };
uvicorn = self.callPackage ./packages/uvicorn { };
tqdm = self.callPackage ./packages/tqdm { };
jmespath = self.callPackage ./packages/jmespath { };
celery = self.callPackage ./packages/celery { };
sqlparse = self.callPackage ./packages/sqlparse { };
dj-database-url = self.callPackage ./packages/dj-database-url { };
antlr4-python3-runtime =
self.callPackage ./packages/antlr4-python3-runtime { };
elementpath = self.callPackage ./packages/elementpath { };
charset-normalizer = self.callPackage ./packages/charset-normalizer { };
djangorestframework-simplejwt =
self.callPackage ./packages/djangorestframework-simplejwt { };
billiard = self.callPackage ./packages/billiard { };
oauthlib = self.callPackage ./packages/oauthlib { };
django-celery-beat = self.callPackage ./packages/django-celery-beat { };
redis = self.callPackage ./packages/redis { };
httptools = self.callPackage ./packages/httptools { };
typing-extensions = self.callPackage ./packages/typing-extensions { };
boto3 = self.callPackage ./packages/boto3 { };
regex = self.callPackage ./packages/regex { };
djangorestframework = self.callPackage ./packages/djangorestframework { };
xmlschema = self.callPackage ./packages/xmlschema { };
django = self.callPackage ./packages/django { };
zipp = self.callPackage ./packages/zipp { };
pytz = self.callPackage ./packages/pytz { };
faker = self.callPackage ./packages/faker { };
websockets = self.callPackage ./packages/websockets { };
psutil = self.callPackage ./packages/psutil { };
botocore = self.callPackage ./packages/botocore { };
sqlalchemy = super.sqlalchemy.overridePythonAttrs (_: {
doCheck = false;
});
fakeredis = super.fakeredis.overridePythonAttrs (_: {
doCheck = false;
});
azure-core = super.azure-core.overridePythonAttrs (_: {
doCheck = false;
});
azure-servicebus = super.azure-servicebus.overridePythonAttrs (_: {
doCheck = false;
});
}

View file

@ -1,25 +0,0 @@
# WARNING: This file was automatically generated. You should avoid editing it.
# If you run pynixify again, the file will be either overwritten or
# deleted, and you will lose the changes you made to it.
{ async-timeout, buildPythonPackage, fetchPypi, hiredis, lib }:
buildPythonPackage rec {
pname = "aioredis";
version = "1.3.1";
src = fetchPypi {
inherit pname version;
sha256 = "0fi7jd5hlx8cnv1m97kv9hc4ih4l8v15wzkqwsp73is4n0qazy0m";
};
propagatedBuildInputs = [ async-timeout hiredis ];
# TODO FIXME
doCheck = false;
meta = with lib; {
description = "asyncio (PEP 3156) Redis support";
homepage = "https://github.com/aio-libs/aioredis";
};
}

View file

@ -1,23 +0,0 @@
# WARNING: This file was automatically generated. You should avoid editing it.
# If you run pynixify again, the file will be either overwritten or
# deleted, and you will lose the changes you made to it.
{ buildPythonPackage, fetchPypi, lib }:
buildPythonPackage rec {
pname = "antlr4-python3-runtime";
version = "4.9.3";
src = fetchPypi {
inherit pname version;
sha256 = "06w8fz73rk8vzjz9rydfk56g4mbqpyl81yhypc14jab886dlc97j";
};
# TODO FIXME
doCheck = false;
meta = with lib; {
description = "ANTLR 4.9.3 runtime for Python 3.7";
homepage = "http://www.antlr.org";
};
}

View file

@ -1,23 +0,0 @@
# WARNING: This file was automatically generated. You should avoid editing it.
# If you run pynixify again, the file will be either overwritten or
# deleted, and you will lose the changes you made to it.
{ buildPythonPackage, fetchPypi, idna, lib, setuptools-scm, sniffio }:
buildPythonPackage rec {
pname = "anyio";
version = "3.6.1";
src = fetchPypi {
inherit pname version;
sha256 = "02yx5yczk50q133543salrjsg9ds8gpg69d9mr1f91iqz6axyfj1";
};
buildInputs = [ setuptools-scm ];
propagatedBuildInputs = [ idna sniffio ];
# TODO FIXME
doCheck = false;
meta = with lib; { };
}

View file

@ -1,20 +0,0 @@
# WARNING: This file was automatically generated. You should avoid editing it.
# If you run pynixify again, the file will be either overwritten or
# deleted, and you will lose the changes you made to it.
{ buildPythonPackage, fetchPypi, lib }:
buildPythonPackage rec {
pname = "asgiref";
version = "3.4.1";
src = fetchPypi {
inherit pname version;
sha256 = "1saqgpgbdvb8awzm0f0640j0im55hkrfzvcw683cgqw4ni3apwaf";
};
# TODO FIXME
doCheck = false;
meta = with lib; { };
}

View file

@ -1,148 +0,0 @@
# WARNING: This file was automatically generated. You should avoid editing it.
# If you run pynixify again, the file will be either overwritten or
# deleted, and you will lose the changes you made to it.
{ advocate, aioredis, amqp, antlr4-python3-runtime, anyio, asgiref
, async-timeout, attrs, autobahn, automat, billiard, boto3, botocore
, buildPythonPackage, celery, celery-redbeat, certifi, cffi, channels
, channels-redis, charset-normalizer, click, click-didyoumean, click-plugins
, click-repl, constantly, cryptography, daphne, dateutil, decorator, defusedxml
, deprecated, dj-database-url, django, django-appconf, django-celery-beat
, django-celery-email, django-cors-headers, django-health-check, django-redis
, django-storages, django-timezone-field, djangorestframework
, djangorestframework-simplejwt, drf-spectacular, elementpath, faker, fetchPypi
, gunicorn, h11, hiredis, httptools, hyperlink, idna, incremental, inflection
, itsdangerous, jmespath, jsonschema, kombu, lib, msgpack, ndg-httpsclient
, netifaces, oauthlib, packaging, pillow, prompt-toolkit, psutil, psycopg2
, pyasn1, pyasn1-modules, pycparser, pyjwt, pyopenssl, pyparsing, pyrsistent
, pysaml2, python-crontab, python-dotenv, pytz, pyyaml, redis, regex, requests
, requests-oauthlib, s3transfer, service-identity, six, sniffio, sqlparse
, tenacity, text-unidecode, tqdm, twisted, txaio, typing-extensions, unicodecsv
, uritemplate, urllib3, uvicorn, uvloop, validators, vine, watchgod, wcwidth
, websockets, wrapt, xmlschema, zipp, zope_interface }:
buildPythonPackage rec {
pname = "baserow-backend";
version = "1.13.3";
src = lib.cleanSource ../../..;
propagatedBuildInputs = [
advocate
aioredis
amqp
antlr4-python3-runtime
anyio
asgiref
async-timeout
attrs
autobahn
automat
billiard
boto3
botocore
celery
celery-redbeat
certifi
cffi
channels
channels-redis
charset-normalizer
click
click-didyoumean
click-plugins
click-repl
constantly
cryptography
daphne
decorator
defusedxml
deprecated
dj-database-url
django
django-appconf
django-celery-beat
django-celery-email
django-cors-headers
django-health-check
django-redis
django-storages
django-timezone-field
djangorestframework
djangorestframework-simplejwt
drf-spectacular
elementpath
faker
gunicorn
h11
hiredis
httptools
hyperlink
idna
incremental
inflection
itsdangerous
jmespath
jsonschema
kombu
msgpack
ndg-httpsclient
netifaces
oauthlib
packaging
pillow
prompt-toolkit
psutil
psycopg2
pyasn1
pyasn1-modules
pycparser
pyjwt
pyopenssl
pyparsing
pyrsistent
pysaml2
python-crontab
dateutil
python-dotenv
pytz
pyyaml
redis
regex
requests
requests-oauthlib
s3transfer
service-identity
six
sniffio
sqlparse
tenacity
text-unidecode
tqdm
twisted
txaio
typing-extensions
unicodecsv
uritemplate
urllib3
uvicorn
uvloop
validators
vine
watchgod
wcwidth
websockets
wrapt
xmlschema
zipp
zope_interface
];
# TODO FIXME
doCheck = false;
meta = with lib; {
description = "Baserow: open source no-code database backend.";
homepage = "https://baserow.io";
};
}

View file

@ -1,23 +0,0 @@
# WARNING: This file was automatically generated. You should avoid editing it.
# If you run pynixify again, the file will be either overwritten or
# deleted, and you will lose the changes you made to it.
{ buildPythonPackage, fetchPypi, lib }:
buildPythonPackage rec {
pname = "billiard";
version = "3.6.4.0";
src = fetchPypi {
inherit pname version;
sha256 = "0ismj2p8c66ykpss94rs0bfra5agxxmljz8r3gaq79r8valfb799";
};
# TODO FIXME
doCheck = false;
meta = with lib; {
description = "Python multiprocessing fork with improvements and bugfixes";
homepage = "https://github.com/celery/billiard";
};
}

View file

@ -1,25 +0,0 @@
# WARNING: This file was automatically generated. You should avoid editing it.
# If you run pynixify again, the file will be either overwritten or
# deleted, and you will lose the changes you made to it.
{ botocore, buildPythonPackage, fetchPypi, jmespath, lib, s3transfer }:
buildPythonPackage rec {
pname = "boto3";
version = "1.20.38";
src = fetchPypi {
inherit pname version;
sha256 = "0qagparxji4s76sm82radc6z7q1k60gm8z0qvawiqscqik9ydspd";
};
propagatedBuildInputs = [ botocore jmespath s3transfer ];
# TODO FIXME
doCheck = false;
meta = with lib; {
description = "The AWS SDK for Python";
homepage = "https://github.com/boto/boto3";
};
}

View file

@ -1,25 +0,0 @@
# WARNING: This file was automatically generated. You should avoid editing it.
# If you run pynixify again, the file will be either overwritten or
# deleted, and you will lose the changes you made to it.
{ buildPythonPackage, dateutil, fetchPypi, jmespath, lib, urllib3 }:
buildPythonPackage rec {
pname = "botocore";
version = "1.23.54";
src = fetchPypi {
inherit pname version;
sha256 = "1sqwl2q37prv07rnf1jmn93571mn5lzbqj90c2igbrffrhbbmfab";
};
propagatedBuildInputs = [ jmespath dateutil urllib3 ];
# TODO FIXME
doCheck = false;
meta = with lib; {
description = "Low-level, data-driven core of boto 3.";
homepage = "https://github.com/boto/botocore";
};
}

View file

@ -1,39 +0,0 @@
# WARNING: This file was automatically generated. You should avoid editing it.
# If you run pynixify again, the file will be either overwritten or
# deleted, and you will lose the changes you made to it.
{ billiard, buildPythonPackage, click, click-didyoumean, click-plugins
, click-repl, fetchPypi, kombu, lib, pytz, vine }:
buildPythonPackage rec {
pname = "celery";
version = "5.2.3";
src = fetchPypi {
inherit pname version;
sha256 = "10mamnm08dzjnmc3098rqsaa3bgblv3d2wj65xm4yzfrg9k43kg2";
};
propagatedBuildInputs = [
pytz
billiard
kombu
vine
click
click-didyoumean
click-repl
click-plugins
];
prePatch = ''
sed -i '/setuptools/d' requirements/default.txt
'';
# TODO FIXME
doCheck = false;
meta = with lib; {
description = "Distributed Task Queue.";
homepage = "http://celeryproject.org";
};
}

View file

@ -1,23 +0,0 @@
# WARNING: This file was automatically generated. You should avoid editing it.
# If you run pynixify again, the file will be either overwritten or
# deleted, and you will lose the changes you made to it.
{ buildPythonPackage, fetchPypi, lib }:
buildPythonPackage rec {
pname = "certifi";
version = "2022.9.24";
src = fetchPypi {
inherit pname version;
sha256 = "056fpl8l6f8p4c087zj1yvsk87n2aff0vinv2abvm9p54h8n170d";
};
# TODO FIXME
doCheck = false;
meta = with lib; {
description = "Python package for providing Mozilla's CA Bundle.";
homepage = "https://github.com/certifi/python-certifi";
};
}

View file

@ -1,26 +0,0 @@
# WARNING: This file was automatically generated. You should avoid editing it.
# If you run pynixify again, the file will be either overwritten or
# deleted, and you will lose the changes you made to it.
{ aioredis, asgiref, buildPythonPackage, channels, fetchPypi, lib, msgpack }:
buildPythonPackage rec {
pname = "channels-redis";
version = "3.3.0";
src = fetchPypi {
inherit version;
pname = "channels_redis";
sha256 = "1aay9b6a88j43xl54sddwha8mb6hdlnjpcavk2vpkfhmkhkww60a";
};
propagatedBuildInputs = [ aioredis msgpack asgiref channels ];
# TODO FIXME
doCheck = false;
meta = with lib; {
description = "Redis-backed ASGI channel layer implementation";
homepage = "http://github.com/django/channels_redis/";
};
}

View file

@ -1,26 +0,0 @@
# WARNING: This file was automatically generated. You should avoid editing it.
# If you run pynixify again, the file will be either overwritten or
# deleted, and you will lose the changes you made to it.
{ asgiref, buildPythonPackage, daphne, django, fetchPypi, lib }:
buildPythonPackage rec {
pname = "channels";
version = "3.0.4";
src = fetchPypi {
inherit pname version;
sha256 = "0xcbpfisgawqa34ccgz56wzid0ycp3c8wjcppmz8sgd2hx4skngx";
};
propagatedBuildInputs = [ django asgiref daphne ];
# TODO FIXME
doCheck = false;
meta = with lib; {
description =
"Brings async, event-driven capabilities to Django. Django 2.2 and up only.";
homepage = "http://github.com/django/channels";
};
}

View file

@ -1,24 +0,0 @@
# WARNING: This file was automatically generated. You should avoid editing it.
# If you run pynixify again, the file will be either overwritten or
# deleted, and you will lose the changes you made to it.
{ buildPythonPackage, fetchPypi, lib }:
buildPythonPackage rec {
pname = "charset-normalizer";
version = "2.0.12";
src = fetchPypi {
inherit pname version;
sha256 = "15r5hf9p6v7s3h3zplz6dvwrg9ni942j78vwrm1bhkfky2gy4mr8";
};
# TODO FIXME
doCheck = false;
meta = with lib; {
description =
"The Real First Universal Charset Detector. Open, modern and actively maintained alternative to Chardet.";
homepage = "https://github.com/ousret/charset_normalizer";
};
}

View file

@ -1,27 +0,0 @@
# WARNING: This file was automatically generated. You should avoid editing it.
# If you run pynixify again, the file will be either overwritten or
# deleted, and you will lose the changes you made to it.
{ asgiref, autobahn, buildPythonPackage, fetchPypi, lib, pytest-runner, twisted
}:
buildPythonPackage rec {
pname = "daphne";
version = "3.0.2";
src = fetchPypi {
inherit pname version;
sha256 = "17z9w18ffi3mchyqg937h5w08q742fklzhcnd6s6dam3df8sxzvn";
};
buildInputs = [ pytest-runner ];
propagatedBuildInputs = [ twisted autobahn asgiref ] ++ twisted.optional-dependencies.tls;
# TODO FIXME
doCheck = false;
meta = with lib; {
description = "Django ASGI (HTTP/WebSocket) server";
homepage = "https://github.com/django/daphne";
};
}

View file

@ -1,23 +0,0 @@
# WARNING: This file was automatically generated. You should avoid editing it.
# If you run pynixify again, the file will be either overwritten or
# deleted, and you will lose the changes you made to it.
{ buildPythonPackage, fetchPypi, lib }:
buildPythonPackage rec {
pname = "dj-database-url";
version = "0.5.0";
src = fetchPypi {
inherit pname version;
sha256 = "0qs16g5y3lflxibsl8gwkwap21crhmmv98l60rdq6x1wawgypsja";
};
# TODO FIXME
doCheck = false;
meta = with lib; {
description = "Use Database URLs in your Django Application.";
homepage = "https://github.com/kennethreitz/dj-database-url";
};
}

View file

@ -1,27 +0,0 @@
# WARNING: This file was automatically generated. You should avoid editing it.
# If you run pynixify again, the file will be either overwritten or
# deleted, and you will lose the changes you made to it.
{ buildPythonPackage, celery, django, django-timezone-field, fetchPypi, lib
, python-crontab }:
buildPythonPackage rec {
pname = "django-celery-beat";
version = "2.2.1";
src = fetchPypi {
inherit pname version;
sha256 = "0d02cac65h6jsb760x98fhmg9b5dgk2hrxkvn2ym25al16rmxblp";
};
propagatedBuildInputs =
[ celery django-timezone-field python-crontab django ];
# TODO FIXME
doCheck = false;
meta = with lib; {
description = "Database-backed Periodic Tasks.";
homepage = "https://github.com/celery/django-celery-beat";
};
}

View file

@ -1,22 +0,0 @@
# WARNING: This file was automatically generated. You should avoid editing it.
# If you run pynixify again, the file will be either overwritten or
# deleted, and you will lose the changes you made to it.
{ buildPythonPackage, django, fetchPypi, lib }:
buildPythonPackage rec {
pname = "django-cors-headers";
version = "3.8.0";
src = fetchPypi {
inherit pname version;
sha256 = "06zcz5safd7a4a911pif81bdswrhbh48ggc6p720mx9xinzi73jb";
};
propagatedBuildInputs = [ django ];
# TODO FIXME
doCheck = false;
meta = with lib; { };
}

View file

@ -1,22 +0,0 @@
# WARNING: This file was automatically generated. You should avoid editing it.
# If you run pynixify again, the file will be either overwritten or
# deleted, and you will lose the changes you made to it.
{ buildPythonPackage, django, fetchPypi, lib }:
buildPythonPackage rec {
pname = "django-storages";
version = "1.12.3";
src = fetchPypi {
inherit pname version;
sha256 = "1rx5s9shap2qppanx59k10kif0fmxi8sf6c9aiz4yk7hy2rfsxd4";
};
propagatedBuildInputs = [ django ];
# TODO FIXME
doCheck = false;
meta = with lib; { };
}

View file

@ -1,26 +0,0 @@
# WARNING: This file was automatically generated. You should avoid editing it.
# If you run pynixify again, the file will be either overwritten or
# deleted, and you will lose the changes you made to it.
{ buildPythonPackage, django, fetchPypi, lib, pytz }:
buildPythonPackage rec {
pname = "django-timezone-field";
version = "4.2.3";
src = fetchPypi {
inherit pname version;
sha256 = "1y4ji0ifslhj1l9m9wrqnnj85qbv5g1y9ryk8y4fyarq969bvmax";
};
propagatedBuildInputs = [ django pytz ];
# TODO FIXME
doCheck = false;
meta = with lib; {
description =
"A Django app providing database and form fields for pytz timezone objects.";
homepage = "http://github.com/mfogel/django-timezone-field/";
};
}

View file

@ -1,23 +0,0 @@
# WARNING: This file was automatically generated. You should avoid editing it.
# If you run pynixify again, the file will be either overwritten or
# deleted, and you will lose the changes you made to it.
{ asgiref, buildPythonPackage, fetchPypi, lib, pytz, sqlparse }:
buildPythonPackage rec {
pname = "django";
version = "3.2.13";
src = fetchPypi {
inherit version;
pname = "Django";
sha256 = "1dn4irl4m21skcqb2mbj55vgryqfqk6wqa8s1c7bmxlv19x4k4vd";
};
propagatedBuildInputs = [ asgiref pytz sqlparse ];
# TODO FIXME
doCheck = false;
meta = with lib; { };
}

View file

@ -1,29 +0,0 @@
# WARNING: This file was automatically generated. You should avoid editing it.
# If you run pynixify again, the file will be either overwritten or
# deleted, and you will lose the changes you made to it.
{ buildPythonPackage, django, djangorestframework, fetchPypi, lib, pyjwt
, setuptools-scm }:
buildPythonPackage rec {
pname = "djangorestframework-simplejwt";
version = "5.2.0";
src = fetchPypi {
inherit version;
pname = "djangorestframework_simplejwt";
sha256 = "0x3sfpxv1kij2pxg12gkv3mfqb6m5diwq169g8fsv4bxnaphj2x6";
};
buildInputs = [ setuptools-scm ];
propagatedBuildInputs = [ django djangorestframework pyjwt ];
# TODO FIXME
doCheck = false;
meta = with lib; {
description =
"A minimal JSON Web Token authentication plugin for Django REST Framework";
homepage = "https://github.com/jazzband/djangorestframework-simplejwt";
};
}

View file

@ -1,25 +0,0 @@
# WARNING: This file was automatically generated. You should avoid editing it.
# If you run pynixify again, the file will be either overwritten or
# deleted, and you will lose the changes you made to it.
{ buildPythonPackage, django, fetchPypi, lib, pytz }:
buildPythonPackage rec {
pname = "djangorestframework";
version = "3.13.1";
src = fetchPypi {
inherit pname version;
sha256 = "1vpjq4mhkl1135c1ikxqrqpc1j88n0j69r56lbn6ik1sw9y40cqc";
};
propagatedBuildInputs = [ django pytz ];
# TODO FIXME
doCheck = false;
meta = with lib; {
description = "Web APIs for Django, made easy.";
homepage = "https://www.django-rest-framework.org/";
};
}

View file

@ -1,28 +0,0 @@
# WARNING: This file was automatically generated. You should avoid editing it.
# If you run pynixify again, the file will be either overwritten or
# deleted, and you will lose the changes you made to it.
{ buildPythonPackage, django, djangorestframework, fetchPypi, inflection
, jsonschema, lib, pyyaml, uritemplate }:
buildPythonPackage rec {
pname = "drf-spectacular";
version = "0.21.2";
src = fetchPypi {
inherit pname version;
sha256 = "0x97m8sf7jg5vk3x3dl49niqy311f33ljq4h2jxf2qsvb747hyma";
};
propagatedBuildInputs =
[ django djangorestframework uritemplate pyyaml jsonschema inflection ];
# TODO FIXME
doCheck = false;
meta = with lib; {
description =
"Sane and flexible OpenAPI 3 schema generation for Django REST framework";
homepage = "https://github.com/tfranzel/drf-spectacular";
};
}

View file

@ -1,24 +0,0 @@
# WARNING: This file was automatically generated. You should avoid editing it.
# If you run pynixify again, the file will be either overwritten or
# deleted, and you will lose the changes you made to it.
{ buildPythonPackage, fetchPypi, lib }:
buildPythonPackage rec {
pname = "elementpath";
version = "3.0.2";
src = fetchPypi {
inherit pname version;
sha256 = "03wl8rcyrqb1m0i8v1dp619c2k6fwq3ajhachxwlyd8gvi18g8fc";
};
# TODO FIXME
doCheck = false;
meta = with lib; {
description =
"XPath 1.0/2.0/3.0 parsers and selectors for ElementTree and lxml";
homepage = "https://github.com/sissaschool/elementpath";
};
}

View file

@ -1,26 +0,0 @@
# WARNING: This file was automatically generated. You should avoid editing it.
# If you run pynixify again, the file will be either overwritten or
# deleted, and you will lose the changes you made to it.
{ buildPythonPackage, dateutil, fetchPypi, lib, text-unidecode }:
buildPythonPackage rec {
pname = "faker";
version = "8.11.0";
src = fetchPypi {
inherit version;
pname = "Faker";
sha256 = "14bqdb7wngxlr9n25syab6i7dr9xjkxlq0wy31aar8yxlffixs5r";
};
propagatedBuildInputs = [ dateutil text-unidecode ];
# TODO FIXME
doCheck = false;
meta = with lib; {
description = "Faker is a Python package that generates fake data for you.";
homepage = "https://github.com/joke2k/faker";
};
}

View file

@ -1,23 +0,0 @@
# WARNING: This file was automatically generated. You should avoid editing it.
# If you run pynixify again, the file will be either overwritten or
# deleted, and you will lose the changes you made to it.
{ buildPythonPackage, fetchPypi, lib }:
buildPythonPackage rec {
pname = "httptools";
version = "0.2.0";
src = fetchPypi {
inherit pname version;
sha256 = "180y8yrn6wcph4i6if6n34805ijd8y4kvc0aadx2sranpqk50l4l";
};
# TODO FIXME
doCheck = false;
meta = with lib; {
description = "A collection of framework independent HTTP protocol utils.";
homepage = "https://github.com/MagicStack/httptools";
};
}

View file

@ -1,23 +0,0 @@
# WARNING: This file was automatically generated. You should avoid editing it.
# If you run pynixify again, the file will be either overwritten or
# deleted, and you will lose the changes you made to it.
{ buildPythonPackage, fetchPypi, lib }:
buildPythonPackage rec {
pname = "incremental";
version = "21.3.0";
src = fetchPypi {
inherit pname version;
sha256 = "0mvgbmsnv1c8ziydw41jjkivc0zcqyzli7frcpvbkxj8zxddxx82";
};
# TODO FIXME
doCheck = false;
meta = with lib; {
description = "A small library that versions your Python projects.";
homepage = "https://github.com/twisted/incremental";
};
}

View file

@ -1,20 +0,0 @@
# WARNING: This file was automatically generated. You should avoid editing it.
# If you run pynixify again, the file will be either overwritten or
# deleted, and you will lose the changes you made to it.
{ buildPythonPackage, fetchPypi, lib }:
buildPythonPackage rec {
pname = "itsdangerous";
version = "2.0.1";
src = fetchPypi {
inherit pname version;
sha256 = "1w6gfb2zhbcmrfj6digwzw1z68w6zg1q87rm6la2m412zil4swly";
};
# TODO FIXME
doCheck = false;
meta = with lib; { };
}

View file

@ -1,23 +0,0 @@
# WARNING: This file was automatically generated. You should avoid editing it.
# If you run pynixify again, the file will be either overwritten or
# deleted, and you will lose the changes you made to it.
{ buildPythonPackage, fetchPypi, lib }:
buildPythonPackage rec {
pname = "jmespath";
version = "0.10.0";
src = fetchPypi {
inherit pname version;
sha256 = "1yflbqggg1z9ndw9ps771hy36d07j9l2wwbj66lljqb6p1khapdq";
};
# TODO FIXME
doCheck = false;
meta = with lib; {
description = "JSON Matching Expressions";
homepage = "https://github.com/jmespath/jmespath.py";
};
}

View file

@ -1,24 +0,0 @@
# WARNING: This file was automatically generated. You should avoid editing it.
# If you run pynixify again, the file will be either overwritten or
# deleted, and you will lose the changes you made to it.
{ buildPythonPackage, fetchPypi, lib }:
buildPythonPackage rec {
pname = "oauthlib";
version = "3.2.1";
src = fetchPypi {
inherit pname version;
sha256 = "089pvahdgdwpka5n4p5awb86anmxhlm5xfjs7vpgcnvrf9rj6r8m";
};
# TODO FIXME
doCheck = false;
meta = with lib; {
description =
"A generic, spec-compliant, thorough implementation of the OAuth request-signing logic";
homepage = "https://github.com/oauthlib/oauthlib";
};
}

View file

@ -1,24 +0,0 @@
# WARNING: This file was automatically generated. You should avoid editing it.
# If you run pynixify again, the file will be either overwritten or
# deleted, and you will lose the changes you made to it.
{ buildPythonPackage, fetchPypi, lib }:
buildPythonPackage rec {
pname = "psutil";
version = "5.9.0";
src = fetchPypi {
inherit pname version;
sha256 = "09fa4vfhansixvxd3lv664xcrbnfdyfn53hm2wr0rf3bsvdl5646";
};
# TODO FIXME
doCheck = false;
meta = with lib; {
description =
"Cross-platform lib for process and system monitoring in Python.";
homepage = "https://github.com/giampaolo/psutil";
};
}

View file

@ -1,25 +0,0 @@
# WARNING: This file was automatically generated. You should avoid editing it.
# If you run pynixify again, the file will be either overwritten or
# deleted, and you will lose the changes you made to it.
{ buildPythonPackage, dateutil, fetchPypi, lib }:
buildPythonPackage rec {
pname = "python-crontab";
version = "2.6.0";
src = fetchPypi {
inherit pname version;
sha256 = "06rg3jj0q70fpvmwmr4mgwg5brjl8z9rdqa3bda00cfw7ixfsd8y";
};
propagatedBuildInputs = [ dateutil ];
# TODO FIXME
doCheck = false;
meta = with lib; {
description = "Python Crontab API";
homepage = "https://gitlab.com/doctormo/python-crontab/";
};
}

View file

@ -1,23 +0,0 @@
# WARNING: This file was automatically generated. You should avoid editing it.
# If you run pynixify again, the file will be either overwritten or
# deleted, and you will lose the changes you made to it.
{ buildPythonPackage, fetchPypi, lib }:
buildPythonPackage rec {
pname = "pytz";
version = "2022.4";
src = fetchPypi {
inherit pname version;
sha256 = "0x1ikf8cvymr22b42icnwwcncsa6fii9ndhf0aramy5nhffpkkj8";
};
# TODO FIXME
doCheck = false;
meta = with lib; {
description = "World timezone definitions, modern and historical";
homepage = "http://pythonhosted.org/pytz";
};
}

View file

@ -1,25 +0,0 @@
# WARNING: This file was automatically generated. You should avoid editing it.
# If you run pynixify again, the file will be either overwritten or
# deleted, and you will lose the changes you made to it.
{ buildPythonPackage, deprecated, fetchPypi, lib, packaging }:
buildPythonPackage rec {
pname = "redis";
version = "4.1.4";
src = fetchPypi {
inherit pname version;
sha256 = "01i3kb52irz3aspzs6djm49x9fx7am7y4cqp4s23zngxi7ghr6hx";
};
propagatedBuildInputs = [ deprecated packaging ];
# TODO FIXME
doCheck = false;
meta = with lib; {
description = "Python client for Redis database and key-value store";
homepage = "https://github.com/redis/redis-py";
};
}

View file

@ -1,23 +0,0 @@
# WARNING: This file was automatically generated. You should avoid editing it.
# If you run pynixify again, the file will be either overwritten or
# deleted, and you will lose the changes you made to it.
{ buildPythonPackage, fetchPypi, lib }:
buildPythonPackage rec {
pname = "regex";
version = "2021.8.3";
src = fetchPypi {
inherit pname version;
sha256 = "0skayn5lmwc0qb0aybzv59y68qiaqpdhwawk7nf3d6rcmmyr6dc9";
};
# TODO FIXME
doCheck = false;
meta = with lib; {
description = "Alternative regular expression module, to replace re.";
homepage = "https://bitbucket.org/mrabarnett/mrab-regex";
};
}

View file

@ -1,26 +0,0 @@
# WARNING: This file was automatically generated. You should avoid editing it.
# If you run pynixify again, the file will be either overwritten or
# deleted, and you will lose the changes you made to it.
{ buildPythonPackage, certifi, charset-normalizer, fetchPypi, idna, lib, urllib3
}:
buildPythonPackage rec {
pname = "requests";
version = "2.26.0";
src = fetchPypi {
inherit pname version;
sha256 = "19q73fq7hip7b74fwls3p9x6zwvfwqcwpn6kha3zsgvrrzw5iamq";
};
propagatedBuildInputs = [ charset-normalizer idna urllib3 certifi ];
# TODO FIXME
doCheck = false;
meta = with lib; {
description = "Python HTTP for Humans.";
homepage = "https://requests.readthedocs.io";
};
}

View file

@ -1,25 +0,0 @@
# WARNING: This file was automatically generated. You should avoid editing it.
# If you run pynixify again, the file will be either overwritten or
# deleted, and you will lose the changes you made to it.
{ botocore, buildPythonPackage, fetchPypi, lib }:
buildPythonPackage rec {
pname = "s3transfer";
version = "0.5.2";
src = fetchPypi {
inherit pname version;
sha256 = "1vcqvghiyxxqibcqqqpdia40ij3896l617hbzgsaamz69hcqricm";
};
propagatedBuildInputs = [ botocore ];
# TODO FIXME
doCheck = false;
meta = with lib; {
description = "An Amazon S3 Transfer Manager";
homepage = "https://github.com/boto/s3transfer";
};
}

View file

@ -1,20 +0,0 @@
# WARNING: This file was automatically generated. You should avoid editing it.
# If you run pynixify again, the file will be either overwritten or
# deleted, and you will lose the changes you made to it.
{ buildPythonPackage, fetchPypi, lib }:
buildPythonPackage rec {
pname = "sqlparse";
version = "0.4.3";
src = fetchPypi {
inherit pname version;
sha256 = "0s3jyllg0ka0n7pgqfng1hzvh39li853dr40qcp4s4dv8r481jk9";
};
# TODO FIXME
doCheck = false;
meta = with lib; { };
}

View file

@ -1,22 +0,0 @@
# WARNING: This file was automatically generated. You should avoid editing it.
# If you run pynixify again, the file will be either overwritten or
# deleted, and you will lose the changes you made to it.
{ buildPythonPackage, fetchPypi, lib, setuptools-scm }:
buildPythonPackage rec {
pname = "tqdm";
version = "4.62.3";
src = fetchPypi {
inherit pname version;
sha256 = "03cjj8jl8iybvfjbpvdql5qfslzfv043g7w6nx8rhv2h2xrdwnfk";
};
buildInputs = [ setuptools-scm ];
# TODO FIXME
doCheck = false;
meta = with lib; { };
}

View file

@ -1,32 +0,0 @@
# WARNING: This file was automatically generated. You should avoid editing it.
# If you run pynixify again, the file will be either overwritten or
# deleted, and you will lose the changes you made to it.
{ attrs, automat, buildPythonPackage, constantly, fetchPypi, hyperlink
, incremental, lib, typing-extensions, zope_interface }:
buildPythonPackage rec {
pname = "twisted";
version = "22.1.0";
src = fetchPypi {
inherit version;
pname = "Twisted";
sha256 = "0qbvsrwkjdyf61s6iph9z7akdmpsgcfp58xivkhq03svh34ix5xp";
};
propagatedBuildInputs = [
zope_interface
constantly
incremental
automat
hyperlink
attrs
typing-extensions
];
# TODO FIXME
doCheck = false;
meta = with lib; { };
}

View file

@ -1,26 +0,0 @@
# WARNING: This file was automatically generated. You should avoid editing it.
# If you run pynixify again, the file will be either overwritten or
# deleted, and you will lose the changes you made to it.
{ buildPythonPackage, fetchPypi, lib, flit-core }:
buildPythonPackage rec {
pname = "typing-extensions";
version = "4.4.0";
format = "pyproject";
src = fetchPypi {
inherit version;
pname = "typing_extensions";
sha256 = "1al7634rq9zqw1s7d1nbry0l23c05s0wrc8jihcxvy1bp55l648m";
};
nativeBuildInputs = [
flit-core
];
# TODO FIXME
doCheck = false;
meta = with lib; { };
}

View file

@ -1,25 +0,0 @@
# WARNING: This file was automatically generated. You should avoid editing it.
# If you run pynixify again, the file will be either overwritten or
# deleted, and you will lose the changes you made to it.
{ asgiref, buildPythonPackage, click, fetchPypi, h11, lib }:
buildPythonPackage rec {
pname = "uvicorn";
version = "0.15.0";
src = fetchPypi {
inherit pname version;
sha256 = "1zyana0yf3m8xkm8ihk7m19wv56gnj1jc61mwb9jhrx83kfw18yr";
};
propagatedBuildInputs = [ asgiref click h11 ];
# TODO FIXME
doCheck = false;
meta = with lib; {
description = "The lightning-fast ASGI server.";
homepage = "https://www.uvicorn.org/";
};
}

View file

@ -1,24 +0,0 @@
# WARNING: This file was automatically generated. You should avoid editing it.
# If you run pynixify again, the file will be either overwritten or
# deleted, and you will lose the changes you made to it.
{ buildPythonPackage, fetchPypi, lib }:
buildPythonPackage rec {
pname = "websockets";
version = "10.3";
src = fetchPypi {
inherit pname version;
sha256 = "1x3g0rar8m3v0iyh89sb0n7l0b8f60qy98cb2dr71s68ff0cq1pw";
};
# TODO FIXME
doCheck = false;
meta = with lib; {
description =
"An implementation of the WebSocket Protocol (RFC 6455 & 7692)";
homepage = "https://github.com/aaugustin/websockets";
};
}

View file

@ -1,25 +0,0 @@
# WARNING: This file was automatically generated. You should avoid editing it.
# If you run pynixify again, the file will be either overwritten or
# deleted, and you will lose the changes you made to it.
{ buildPythonPackage, elementpath, fetchPypi, lib }:
buildPythonPackage rec {
pname = "xmlschema";
version = "2.1.0";
src = fetchPypi {
inherit pname version;
sha256 = "1915njkbzk5kmk95g1vg7jmpgi46f2110wdbjci2mvqdbqq0rxz7";
};
propagatedBuildInputs = [ elementpath ];
# TODO FIXME
doCheck = false;
meta = with lib; {
description = "An XML Schema validator and decoder";
homepage = "https://github.com/sissaschool/xmlschema";
};
}

View file

@ -1,20 +0,0 @@
# WARNING: This file was automatically generated. You should avoid editing it.
# If you run pynixify again, the file will be either overwritten or
# deleted, and you will lose the changes you made to it.
{ buildPythonPackage, fetchPypi, lib }:
buildPythonPackage rec {
pname = "zipp";
version = "3.5.0";
src = fetchPypi {
inherit pname version;
sha256 = "1i7hkdbivya5lvww9y8i85mp3spbwzsfk9a96kvcyj3y00g2p0gm";
};
# TODO FIXME
doCheck = false;
meta = with lib; { };
}

View file

@ -0,0 +1,87 @@
[tool.black]
exclude = '''
/(
| migrations
| generated
)/
'''
[tool.poetry]
name = "baserow"
version = "1.15.1"
description = "Baserow: open source no-code database backend."
authors = ["Bram Wiepjes (Baserow) <bram@baserow.io>"]
readme = "README.md"
packages = [
{ include = "baserow", from = "src" },
]
[tool.poetry.scripts]
baserow = 'baserow.manage:main'
[tool.poetry.dependencies]
python = "^3.10"
django = "3.2.18"
django-cors-headers = "3.14.0"
djangorestframework = "3.14.0"
djangorestframework-simplejwt = "5.2.2"
psycopg2 = "2.9.5"
faker = "8.11.0"
twisted = "22.10.0"
gunicorn = "20.1.0"
uvicorn = {version = "0.20.0", extras = ["standard"]}
websockets = "10.4"
requests = "2.28.2"
itsdangerous = "2.1.2"
pillow = "9.0.0"
drf-spectacular = "0.25.1"
asgiref = "3.6.0"
channels = {version = "4.0.0", extras = ["daphne"]}
channels-redis = "4.0.0"
celery = {version = "5.2.7", extras = ["redis"]}
django-redis = "5.2.0"
django-celery-email = "3.0.0"
advocate = "1.0.0"
zipp = "3.5.0"
unicodecsv = "0.14.1"
django-celery-beat = "2.4.0"
celery-redbeat = "2.0.0"
service-identity = "21.1.0"
regex = "2021.8.3"
antlr4-python3-runtime = "4.9.3"
tqdm = "4.64.1"
boto3 = "1.26.83"
django-storages = "1.12.3"
django-health-check = "3.16.5"
psutil = "5.9.4"
dj-database-url = "0.5.0"
redis = "4.5.1"
pysaml2 = "7.4.1"
validators = "0.20.0"
requests-oauthlib = "1.3.1"
opentelemetry-api = "1.15.0"
opentelemetry-exporter-otlp-proto-http = "1.15.0"
opentelemetry-instrumentation = "0.36b0"
opentelemetry-instrumentation-django = "0.36b0"
opentelemetry-instrumentation-aiohttp-client = "0.36b0"
opentelemetry-instrumentation-asgi = "0.36b0"
opentelemetry-instrumentation-botocore = "0.36b0"
opentelemetry-instrumentation-celery = "0.36b0"
opentelemetry-instrumentation-dbapi = "0.36b0"
opentelemetry-instrumentation-grpc = "0.36b0"
opentelemetry-instrumentation-logging = "0.36b0"
opentelemetry-instrumentation-psycopg2 = "0.36b0"
opentelemetry-instrumentation-redis = "0.36b0"
opentelemetry-instrumentation-requests = "0.36b0"
opentelemetry-instrumentation-wsgi = "0.36b0"
opentelemetry-proto = "1.15.0"
opentelemetry-sdk = "1.15.0"
opentelemetry-semantic-conventions = "0.36b0"
opentelemetry-util-http = "0.36b0"
brotli = "1.0.9"
loguru = "0.6.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

View file

@ -4,6 +4,7 @@
, stdenv , stdenv
, makeWrapper , makeWrapper
, python3 , python3
, poetry2nix
, nodejs-16_x , nodejs-16_x
, ossOnly ? true , ossOnly ? true
}: }:
@ -33,50 +34,98 @@ let
}; };
nodejs = nodejs-16_x; nodejs = nodejs-16_x;
python = python3.override { poetry2nixOverrides = poetry2nix.defaultPoetryOverrides.overrideOverlay (self: super: let
packageOverrides = self: super: addBuildInputs = f: buildInputs: f.overridePythonAttrs (old: {
let buildInputs = (old.buildInputs or []) ++ buildInputs;
oss = import ./backend/pynixify/overlay.nix self super;
premium = import ./premium-backend/pynixify/overlay.nix self super;
enterprise = import ./enterprise-backend/pynixify/overlay.nix self super;
baserow-premium-backend = premium.baserow-premium-backend.overridePythonAttrs (_: {
inherit version;
src = "${src}/premium/backend";
postInstall = ''
install -m0644 $src/src/baserow_premium/public_key.pem $out/${python.sitePackages}/baserow_premium/public_key.pem
'';
}); });
baserow-enterprise-backend = enterprise.baserow-enterprise-backend.overridePythonAttrs (_: { in {
inherit version; kombu = let
src = "${src}/enterprise/backend"; kombuVersion = "5.2.4";
in assert lib.assertMsg (super.kombu.version == kombuVersion) "kombu (${super.kombu.version}) is different version to what I expected (${kombuVersion}); maybe remove the override?"; super.kombu.overridePythonAttrs (old: {
buildInputs = (old.buildInputs or []) ++ [ self.setuptools ];
postPatch = '' postPatch = ''
pushd src/baserow_enterprise ${old.postPatch or ""}
find . -name '*.py' -printf '%h\n' | sort | uniq | while read pydir; do substituteInPlace requirements/test.txt --replace "pytz>dev" "pytz"
thisdir=$pydir
while [[ "$thisdir" != "." ]]; do
test -f $thisdir/__init__.py || touch $thisdir/__init__.py
thisdir="$(dirname $thisdir)"
done
done
popd
''; '';
}); });
in opentelemetry-instrumentation-aiohttp = addBuildInputs super.opentelemetry-instrumentation-aiohttp [ self.hatchling ];
oss // (if !ossOnly then premium else {}) // { opentelemetry-instrumentation-aiohttp-client = addBuildInputs super.opentelemetry-instrumentation-aiohttp-client [ self.hatchling ];
baserow-backend = oss.baserow-backend.overridePythonAttrs (oldAttrs: { opentelemetry-instrumentation-botocore = addBuildInputs super.opentelemetry-instrumentation-botocore [ self.hatchling ];
inherit version; opentelemetry-instrumentation-celery = addBuildInputs super.opentelemetry-instrumentation-celery [ self.hatchling ];
src = "${src}/backend"; opentelemetry-instrumentation-dbapi = addBuildInputs super.opentelemetry-instrumentation-dbapi [ self.hatchling ];
prePatch = '' opentelemetry-instrumentation-django = addBuildInputs super.opentelemetry-instrumentation-django [ self.hatchling ];
# Yeet. Just assume everything is installed in the environment already. opentelemetry-instrumentation-grpc = addBuildInputs super.opentelemetry-instrumentation-grpc [ self.hatchling ];
> requirements/base.txt opentelemetry-instrumentation-logging = addBuildInputs super.opentelemetry-instrumentation-logging [ self.hatchling ];
''; opentelemetry-instrumentation-psycopg2 = addBuildInputs super.opentelemetry-instrumentation-psycopg2 [ self.hatchling ];
propagatedBuildInputs = oldAttrs.propagatedBuildInputs ++ lib.optionals (!ossOnly) [ baserow-premium-backend baserow-enterprise-backend ]; opentelemetry-instrumentation-redis = addBuildInputs super.opentelemetry-instrumentation-redis [ self.hatchling ];
opentelemetry-instrumentation-requests = addBuildInputs super.opentelemetry-instrumentation-requests [ self.hatchling ];
opentelemetry-instrumentation-wsgi = addBuildInputs super.opentelemetry-instrumentation-wsgi [ self.hatchling ];
django-health-check = addBuildInputs super.django-health-check [ self.sphinx self.setuptools-scm ];
pysaml2 = addBuildInputs super.pysaml2 [ self.poetry-core ];
}); });
} // (if !ossOnly then { inherit baserow-premium-backend baserow-enterprise-backend; } else {});
mkBackendSrc = { type, fromDir, pyproject, poetrylock, extra ? "" }: pkgs.runCommand "baserow-${type}-src" {
inherit src pyproject poetrylock fromDir;
} ''
cp -r $src/$fromDir $out
chmod -R +w $out
cp $pyproject $out/pyproject.toml
cp $poetrylock $out/poetry.lock
cp $src/README.md $out
rm $out/setup.py
${extra}
'';
mkBackendApp = {
type, fromDir, pyproject, poetrylock, srcExtra ? "", postInstall ? ""
}: let
src = mkBackendSrc { inherit type fromDir pyproject poetrylock; extra = srcExtra; };
in poetry2nix.mkPoetryApplication {
projectDir = src;
inherit pyproject poetrylock postInstall;
overrides = poetry2nixOverrides;
python = python3;
passthru.src = src;
}; };
templates = pkgs.runCommand "baserow-templates" {
inherit src;
} ''
cp -r "$src/backend/templates" $out
'';
backendApp = mkBackendApp {
type = "backend";
fromDir = "backend";
pyproject = ./backend/pyproject.toml;
poetrylock = ./backend/poetry.lock;
srcExtra = ''
substituteInPlace "$out/src/baserow/config/settings/base.py" \
--replace 'APPLICATION_TEMPLATES_DIR = os.path.join(BASE_DIR, "../../../templates")' "APPLICATION_TEMPLATES_DIR = '${templates}'"
'';
postInstall = ''
mkdir $out/bin
install -m 0755 ${./backend/gunicorn.py} $out/bin/baserow-gunicorn
install -m 0755 ${./backend/celery.py} $out/bin/baserow-celery
'';
};
premiumBackendApp = mkBackendApp {
type = "premium-backend";
fromDir = "premium/backend";
pyproject = ./premium-backend/pyproject.toml;
poetrylock = ./premium-backend/poetry.lock;
};
enterpriseBackendApp = mkBackendApp {
type = "enterprise-backend";
fromDir = "enterprise/backend";
pyproject = ./enterprise-backend/pyproject.toml;
poetrylock = ./enterprise-backend/poetry.lock;
};
backendEnv = backendApp.python.buildEnv.override (old: {
extraLibs = [ backendApp ] ++ lib.optionals (!ossOnly) [ premiumBackendApp enterpriseBackendApp ];
});
in in
{ {
inherit src web-frontend-deps python; inherit src web-frontend-deps;
web-frontend = stdenv.mkDerivation { web-frontend = stdenv.mkDerivation {
name = "baserow${suffix}-web-frontend"; name = "baserow${suffix}-web-frontend";
@ -122,27 +171,5 @@ in
dontInstall = true; dontInstall = true;
}; };
backend = python.pkgs.baserow-backend.overridePythonAttrs (oldAttrs: { backend = backendEnv;
inherit version;
src = "${src}/backend";
prePatch = ''
# Yeet. Just assume everything is installed in the environment already.
> requirements/base.txt
substituteInPlace src/baserow/config/settings/base.py \
--replace 'APPLICATION_TEMPLATES_DIR = os.path.join(BASE_DIR, "../../../templates")' "APPLICATION_TEMPLATES_DIR = '$out/share/baserow/templates'"
'';
postInstall = ''
comm -23 <(find $src/src/baserow/ -type d | sed "s,$src/src/baserow/,," | sort) <(find $out/${python.sitePackages}/baserow/ -type d | sed "s,$out/${python.sitePackages}/baserow/,," | sort) | while read missingDir; do
test -e "$out/${python.sitePackages}/baserow/$missingDir" && continue
cp -R "$src/src/baserow/$missingDir" "$out/${python.sitePackages}/baserow/$missingDir"
done
install -d -m 0755 $out/share/baserow
cp -R "$src/templates" "$out/share/baserow/templates"
install -m 0755 ${./backend/gunicorn.py} $out/bin/baserow-gunicorn
install -m 0755 ${./backend/celery.py} $out/bin/baserow-celery
'';
});
} }

View file

@ -0,0 +1,7 @@
# This file is automatically @generated by Poetry 1.4.1 and should not be changed by hand.
package = []
[metadata]
lock-version = "2.0"
python-versions = "*"
content-hash = "115cf985d932e9bf5f540555bbdd75decbb62cac81e399375fc19f6277f8c1d8"

View file

@ -1,5 +0,0 @@
self: super: {
baserow-enterprise-backend =
self.callPackage ./packages/baserow-enterprise-backend { };
}

View file

@ -1,17 +0,0 @@
# WARNING: This file was automatically generated. You should avoid editing it.
# If you run pynixify again, the file will be either overwritten or
# deleted, and you will lose the changes you made to it.
{ buildPythonPackage, fetchPypi, lib }:
buildPythonPackage rec {
pname = "baserow-enterprise-backend";
version = "0.1dev";
src = lib.cleanSource ../../..;
# TODO FIXME
doCheck = false;
meta = with lib; { homepage = "https://baserow.io"; };
}

View file

@ -0,0 +1,12 @@
[tool.poetry]
name = "baserow_enterprise"
version = "1.15.1"
description = "Baserow: open source no-code database backend."
authors = ["Bram Wiepjes (Baserow) <bram@baserow.io>"]
packages = [
{ include = "baserow_enterprise", from = "src" },
]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

View file

@ -0,0 +1,7 @@
# This file is automatically @generated by Poetry 1.4.1 and should not be changed by hand.
package = []
[metadata]
lock-version = "2.0"
python-versions = "*"
content-hash = "115cf985d932e9bf5f540555bbdd75decbb62cac81e399375fc19f6277f8c1d8"

View file

@ -1,5 +0,0 @@
self: super: {
baserow-premium-backend =
self.callPackage ./packages/baserow-premium-backend { };
}

View file

@ -1,17 +0,0 @@
# WARNING: This file was automatically generated. You should avoid editing it.
# If you run pynixify again, the file will be either overwritten or
# deleted, and you will lose the changes you made to it.
{ buildPythonPackage, fetchPypi, lib }:
buildPythonPackage rec {
pname = "baserow-premium-backend";
version = "0.1dev";
src = lib.cleanSource ../../..;
# TODO FIXME
doCheck = false;
meta = with lib; { homepage = "https://baserow.io"; };
}

View file

@ -0,0 +1,12 @@
[tool.poetry]
name = "baserow_premium"
version = "1.15.1"
description = "Baserow: open source no-code database backend."
authors = ["Bram Wiepjes (Baserow) <bram@baserow.io>"]
packages = [
{ include = "baserow_premium", from = "src" },
]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

View file

@ -385,6 +385,7 @@ lib.composeManyExtensions [
"39.0.0" = "sha256-clorC0NtGukpE3DnZ84MSdGhJN+qC89DZPITZFuL01Q="; "39.0.0" = "sha256-clorC0NtGukpE3DnZ84MSdGhJN+qC89DZPITZFuL01Q=";
"39.0.1" = "sha256-AlorC0NtGukpE3DnZ84MSdGhJN+qC89DZPITZFuL01Q="; "39.0.1" = "sha256-AlorC0NtGukpE3DnZ84MSdGhJN+qC89DZPITZFuL01Q=";
"39.0.2" = "sha256-Admz48/GS2t8diz611Ciin1HKQEyMDEwHxTpJ5tZ1ZA="; "39.0.2" = "sha256-Admz48/GS2t8diz611Ciin1HKQEyMDEwHxTpJ5tZ1ZA=";
"40.0.1" = "sha256-gFfDTc2QWBWHBCycVH1dYlCsWQMVcRZfOBIau+njtDU=";
}.${version} or ( }.${version} or (
lib.warn "Unknown cryptography version: '${version}'. Please update getCargoHash." lib.fakeHash lib.warn "Unknown cryptography version: '${version}'. Please update getCargoHash." lib.fakeHash
); );
@ -402,6 +403,7 @@ lib.composeManyExtensions [
nativeBuildInputs = (old.nativeBuildInputs or [ ]) nativeBuildInputs = (old.nativeBuildInputs or [ ])
++ lib.optionals (lib.versionAtLeast old.version "3.4") [ self.setuptools-rust ] ++ lib.optionals (lib.versionAtLeast old.version "3.4") [ self.setuptools-rust ]
++ lib.optional (!self.isPyPy) pyBuildPackages.cffi ++ lib.optional (!self.isPyPy) pyBuildPackages.cffi
++ lib.optional (lib.versionAtLeast old.version "40") pkgs.pkg-config
++ lib.optional (lib.versionAtLeast old.version "3.5" && !isWheel) ++ lib.optional (lib.versionAtLeast old.version "3.5" && !isWheel)
(with pkgs.rustPlatform; [ cargoSetupHook rust.cargo rust.rustc ]); (with pkgs.rustPlatform; [ cargoSetupHook rust.cargo rust.rustc ]);
buildInputs = (old.buildInputs or [ ]) buildInputs = (old.buildInputs or [ ])
@ -2595,6 +2597,7 @@ lib.composeManyExtensions [
let let
# Watchfiles does not include Cargo.lock in tarball released on PyPi for versions up to 0.17.0 # Watchfiles does not include Cargo.lock in tarball released on PyPi for versions up to 0.17.0
getRepoHash = version: { getRepoHash = version: {
"0.19.0" = "sha256-NmmeoaIfFMNKCcjH6tPnkpflkN35bKlT76MqF9W8LBc=";
"0.18.1" = "sha256-XEhu6M1hFi3/gAKZcei7KJSrIhhlZhlvZvbfyA6VLR4="; "0.18.1" = "sha256-XEhu6M1hFi3/gAKZcei7KJSrIhhlZhlvZvbfyA6VLR4=";
"0.18.0" = "sha256-biGGn0YAUbSO1hCJ4kU0ZWlqlXl/HRrBS3iIA3myRI8="; "0.18.0" = "sha256-biGGn0YAUbSO1hCJ4kU0ZWlqlXl/HRrBS3iIA3myRI8=";
"0.17.0" = "1swpf265h9qq30cx55iy6jjirba3wml16wzb68k527ynrxr7hvqx"; "0.17.0" = "1swpf265h9qq30cx55iy6jjirba3wml16wzb68k527ynrxr7hvqx";