mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
radicale: fix tests for python 3.11
This commit is contained in:
parent
b625ca1f0b
commit
182d23ab70
1 changed files with 17 additions and 1 deletions
|
@ -1,4 +1,9 @@
|
|||
{ lib, python3, fetchFromGitHub, nixosTests }:
|
||||
{ lib
|
||||
, python3
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, nixosTests
|
||||
}:
|
||||
|
||||
python3.pkgs.buildPythonApplication rec {
|
||||
pname = "radicale";
|
||||
|
@ -11,6 +16,15 @@ python3.pkgs.buildPythonApplication rec {
|
|||
hash = "sha256-V0nqgxGUxcTRAYFuxpKUEVB/g/Mbvw+9OIcvAexXwuM=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# https://github.com/Kozea/Radicale/pull/1328
|
||||
(fetchpatch {
|
||||
name = "fix-python3.11-tests.patch";
|
||||
url = "https://github.com/Kozea/Radicale/commit/110ec3a7885f523ce894a8c0e336c1a081dcd092.patch";
|
||||
hash = "sha256-WEiwzJ+Vzv8PXmZUi1X7Qzs+oE6qgmpvHqm/xiOMrt0=";
|
||||
})
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
sed -i '/addopts/d' setup.cfg
|
||||
'';
|
||||
|
@ -23,6 +37,8 @@ python3.pkgs.buildPythonApplication rec {
|
|||
pytz # https://github.com/Kozea/Radicale/issues/816
|
||||
] ++ passlib.optional-dependencies.bcrypt;
|
||||
|
||||
__darwinAllowLocalNetworking = true;
|
||||
|
||||
nativeCheckInputs = with python3.pkgs; [
|
||||
pytestCheckHook
|
||||
waitress
|
||||
|
|
Loading…
Reference in a new issue