1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00

python3Packages.django-mfa3: Enable failing test (#362537)

This commit is contained in:
Jonas Heinrich 2024-12-10 11:08:20 +01:00 committed by GitHub
commit 592b1a2de0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -8,6 +8,7 @@
fido2,
qrcode,
python,
fetchpatch,
}:
buildPythonPackage rec {
@ -22,6 +23,16 @@ buildPythonPackage rec {
hash = "sha256-O8po7VevqyHlP2isnNnLbpgfs1p4sFezxIZKMTgnwuY=";
};
patches = [
# Fix for tests.tests.FIDO2Test.test_origin_https
# https://github.com/xi/django-mfa3/issues/24
(fetchpatch {
url = "https://github.com/xi/django-mfa3/commit/49003746783e32cd60e55c4593bef5d7e709c4bd.patch";
hash = "sha256-D3fPURAB+RC16fSd2COpCIcmjZW/1h92GOOhRczSVec=";
name = "test_origin_https_fix.patch";
})
];
build-system = [ setuptools ];
dependencies = [
@ -36,9 +47,7 @@ buildPythonPackage rec {
pythonRelaxDeps = [ "qrcode" ];
checkPhase = ''
# Disable failing test test_origin_https
# https://github.com/xi/django-mfa3/issues/24
${python.interpreter} -m django test --settings tests.settings -k "not test_origin_https"
${python.interpreter} -m django test --settings tests.settings
'';
meta = {