privacyidea: fix build

Failing Hydra build: https://hydra.nixos.org/build/192932057

Just a small test error, workaround applied from upstream/master.
This commit is contained in:
Maximilian Bosch 2022-10-06 11:59:35 +02:00
parent ecaf6aed02
commit 1c7728df2a
No known key found for this signature in database
GPG key ID: 9A6EEA275CA5BE0A

View file

@ -1,5 +1,5 @@
{ lib, fetchFromGitHub, cacert, openssl, nixosTests
, python39
, python39, fetchpatch
}:
let
@ -107,6 +107,16 @@ python3'.pkgs.buildPythonPackage rec {
pydash ecdsa google-auth importlib-metadata argon2-cffi bcrypt
];
patches = [
# Apply https://github.com/privacyidea/privacyidea/pull/3304, fixes
# `Exceeds the limit (4300) for integer string conversion` in the tests,
# see https://hydra.nixos.org/build/192932057
(fetchpatch {
url = "https://github.com/privacyidea/privacyidea/commit/0e28f36c0b3291a361669f4a3a77c294f4564475.patch";
sha256 = "sha256-QqcO8bkt+I2JKce/xk2ZhzEaLZ3E4uZ4x5W9Kk0pMQQ=";
})
];
passthru.tests = { inherit (nixosTests) privacyidea; };
checkInputs = with python3'.pkgs; [ openssl mock pytestCheckHook responses testfixtures ];