Merge pull request #188872 from RaitoBezarius/fix-baserow

This commit is contained in:
Martin Weinelt 2022-09-23 15:02:44 +02:00 committed by GitHub
commit 4ef0605835
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 57 deletions

View File

@ -1,66 +1,21 @@
{ lib
, buildPythonPackage
, fetchFromGitLab
, regex
, service-identity
, 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 }:
, makeWrapper
, python3
}:
let
baserow_premium = with python.pkgs; ( buildPythonPackage rec {
baserow_premium = with python3.pkgs; ( buildPythonPackage rec {
pname = "baserow_premium";
version = "1.10.2";
foramt = "setuptools";
src = fetchFromGitLab {
owner = "bramw";
repo = pname;
rev = version;
sha256 = "sha256-4BrhTwAxHboXz8sMZL0V68skgNw2D2/YJuiWVNe0p4w=";
rev = "refs/tags/${version}";
hash = "sha256-4BrhTwAxHboXz8sMZL0V68skgNw2D2/YJuiWVNe0p4w=";
};
sourceRoot = "source/premium/backend";
@ -70,15 +25,16 @@ let
in
buildPythonPackage rec {
with python3.pkgs; buildPythonPackage rec {
pname = "baserow";
version = "1.10.2";
format = "setuptools";
src = fetchFromGitLab {
owner = "bramw";
repo = pname;
rev = version;
sha256 = "sha256-4BrhTwAxHboXz8sMZL0V68skgNw2D2/YJuiWVNe0p4w=";
rev = "refs/tags/${version}";
hash = "sha256-4BrhTwAxHboXz8sMZL0V68skgNw2D2/YJuiWVNe0p4w=";
};
sourceRoot = "source/backend";
@ -87,8 +43,11 @@ buildPythonPackage rec {
# remove dependency constraints
sed 's/[~<>=].*//' -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 = [
advocate
antlr4-python3-runtime
@ -122,8 +81,15 @@ buildPythonPackage rec {
twisted
unicodecsv
uvicorn
watchgod
zipp
];
] ++ uvicorn.optional-dependencies.standard;
postInstall = ''
wrapProgram $out/bin/baserow \
--prefix PYTHONPATH : "$PYTHONPATH" \
--prefix DJANGO_SETTINGS_MODULE : "baserow.config.settings.base"
'';
checkInputs = [
baserow_premium

View File

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