3
0
Fork 0
forked from mirrors/nixpkgs

baserow: unbreak the backend

This commit is contained in:
Raito Bezarius 2022-08-30 00:08:54 +02:00
parent f3b7d6414b
commit 4935d7e9fb
2 changed files with 23 additions and 57 deletions

View file

@ -1,66 +1,21 @@
{ lib { lib
, buildPythonPackage
, fetchFromGitLab , fetchFromGitLab
, regex , makeWrapper
, service-identity , python3
, itsdangerous }:
, requests
, redis
, channels
, channels-redis
, psycopg2
, gunicorn
, django-cors-headers
, django-celery-email
, advocate
, django-storages
, pillow
, faker
, uvicorn
, twisted
, django
, drf-jwt
, cryptography
, tqdm
, celery-redbeat
, drf-spectacular
, websockets
, asgiref
, antlr4-python3-runtime
, psutil
, dj-database-url
, django-health-check
, celery
, unicodecsv
, django-celery-beat
, django-redis
, zipp
, boto3
, cached-property
, importlib-resources
, zope_interface
, freezegun
, pyinstrument
, responses
, pytestCheckHook
, setuptools
, pytest-django
, python
, httpretty
, pytest-unordered
, openapi-spec-validator }:
let let
baserow_premium = with python.pkgs; ( buildPythonPackage rec { baserow_premium = with python3.pkgs; ( buildPythonPackage rec {
pname = "baserow_premium"; pname = "baserow_premium";
version = "1.10.2"; version = "1.10.2";
foramt = "setuptools";
src = fetchFromGitLab { src = fetchFromGitLab {
owner = "bramw"; owner = "bramw";
repo = pname; repo = pname;
rev = version; rev = "refs/tags/${version}";
sha256 = "sha256-4BrhTwAxHboXz8sMZL0V68skgNw2D2/YJuiWVNe0p4w="; hash = "sha256-4BrhTwAxHboXz8sMZL0V68skgNw2D2/YJuiWVNe0p4w=";
}; };
sourceRoot = "source/premium/backend"; sourceRoot = "source/premium/backend";
@ -70,15 +25,16 @@ let
in in
buildPythonPackage rec { with python3.pkgs; buildPythonPackage rec {
pname = "baserow"; pname = "baserow";
version = "1.10.2"; version = "1.10.2";
format = "setuptools";
src = fetchFromGitLab { src = fetchFromGitLab {
owner = "bramw"; owner = "bramw";
repo = pname; repo = pname;
rev = version; rev = "refs/tags/${version}";
sha256 = "sha256-4BrhTwAxHboXz8sMZL0V68skgNw2D2/YJuiWVNe0p4w="; hash = "sha256-4BrhTwAxHboXz8sMZL0V68skgNw2D2/YJuiWVNe0p4w=";
}; };
sourceRoot = "source/backend"; sourceRoot = "source/backend";
@ -87,8 +43,11 @@ buildPythonPackage rec {
# remove dependency constraints # remove dependency constraints
sed 's/[~<>=].*//' -i requirements/base.in requirements/base.txt sed 's/[~<>=].*//' -i requirements/base.in requirements/base.txt
sed 's/zope-interface/zope.interface/' -i requirements/base.in requirements/base.txt sed 's/zope-interface/zope.interface/' -i requirements/base.in requirements/base.txt
sed 's/\[standard\]//' -i requirements/base.in requirements/base.txt
''; '';
nativeBuildInputs = [ makeWrapper ];
propagatedBuildInputs = [ propagatedBuildInputs = [
advocate advocate
antlr4-python3-runtime antlr4-python3-runtime
@ -122,8 +81,15 @@ buildPythonPackage rec {
twisted twisted
unicodecsv unicodecsv
uvicorn uvicorn
watchgod
zipp zipp
]; ] ++ uvicorn.optional-dependencies.standard;
postInstall = ''
wrapProgram $out/bin/baserow \
--prefix PYTHONPATH : "$PYTHONPATH" \
--prefix DJANGO_SETTINGS_MODULE : "baserow.config.settings.base"
'';
checkInputs = [ checkInputs = [
baserow_premium baserow_premium

View file

@ -22478,7 +22478,7 @@ with pkgs;
sabnzbd = callPackage ../servers/sabnzbd { }; sabnzbd = callPackage ../servers/sabnzbd { };
baserow = python3Packages.callPackage ../servers/baserow { }; baserow = callPackage ../servers/baserow { };
bftpd = callPackage ../servers/ftp/bftpd {}; bftpd = callPackage ../servers/ftp/bftpd {};