mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 07:23:20 +00:00
etebase: fix runtime crash due to wrong pydantic..
...version. Upstream still uses pydantic 1, which it implicitly imports via fastapi. Overriding that and its pydantic-using dependencies fixes it, until upstream updates.
This commit is contained in:
parent
8beb4562d9
commit
395bbdd54d
@ -1,6 +1,5 @@
|
||||
{ lib
|
||||
, fetchFromGitHub
|
||||
, buildPythonPackage
|
||||
, aiofiles
|
||||
, django_3
|
||||
, fastapi
|
||||
@ -9,13 +8,22 @@
|
||||
, redis
|
||||
, typing-extensions
|
||||
, withLdap ? true
|
||||
, python3
|
||||
, python-ldap
|
||||
, withPostgres ? true
|
||||
, psycopg2
|
||||
, nix-update-script
|
||||
, nixosTests
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
let
|
||||
python = python3.override {
|
||||
packageOverrides = self: super: {
|
||||
pydantic = super.pydantic_1;
|
||||
};
|
||||
};
|
||||
in
|
||||
python.pkgs.buildPythonPackage rec {
|
||||
pname = "etebase-server";
|
||||
version = "0.11.0";
|
||||
format = "other";
|
||||
@ -49,6 +57,9 @@ buildPythonPackage rec {
|
||||
'';
|
||||
|
||||
passthru.updateScript = nix-update-script {};
|
||||
passthru.tests = {
|
||||
nixosTest = nixosTests.etebase-server;
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/etesync/server";
|
||||
|
Loading…
Reference in New Issue
Block a user