privacyidea: fix build by pinning factory_boy to 3.2.1

This commit is contained in:
Theodore Ni 2023-08-30 11:41:57 -07:00
parent edfb18664a
commit 29264fdead
No known key found for this signature in database
GPG Key ID: 48B67583BDDD4474

View File

@ -7,6 +7,8 @@ let
outputs = lib.filter (x: x != "doc") outputs;
};
# Follow issue below for Python 3.11 support
# https://github.com/privacyidea/privacyidea/issues/3593
python3' = python310.override {
packageOverrides = self: super: {
django = super.django_3;
@ -20,6 +22,15 @@ let
};
doCheck = false;
});
# version 3.3.0+ does not support SQLAlchemy 1.3
factory_boy = super.factory_boy.overridePythonAttrs (oldAttrs: rec {
version = "3.2.1";
src = oldAttrs.src.override {
inherit version;
hash = "sha256-qY0newwEfHXrbkq4UIp/gfsD0sshmG9ieRNUbveipV4=";
};
postPatch = "";
});
# fails with `no tests ran in 1.75s`
alembic = super.alembic.overridePythonAttrs (lib.const {
doCheck = false;
@ -180,6 +191,7 @@ in
python3'.pkgs.buildPythonPackage rec {
pname = "privacyIDEA";
version = "3.8.1";
format = "setuptools";
src = fetchFromGitHub {
owner = pname;