Merge pull request #274603 from dali99/clean-caldav

python3Packages.caldav: remove outdated substitutes, test with xandikos
This commit is contained in:
Nick Cao 2023-12-16 10:19:30 -05:00 committed by GitHub
commit f2286d2b45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,6 +11,7 @@
, setuptools , setuptools
, tzlocal , tzlocal
, vobject , vobject
, xandikos
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -43,15 +44,9 @@ buildPythonPackage rec {
nativeCheckInputs = [ nativeCheckInputs = [
pytestCheckHook pytestCheckHook
xandikos
]; ];
# xandikos and radicale are only optional test dependencies, not available for python3
postPatch = ''
substituteInPlace setup.py \
--replace xandikos "" \
--replace radicale ""
'';
pythonImportsCheck = [ "caldav" ]; pythonImportsCheck = [ "caldav" ];
meta = with lib; { meta = with lib; {