Merge pull request #228978 from dotlambda/etesync-dav-fix

etesync-dav: fix build
This commit is contained in:
Weijia Wang 2023-04-30 00:10:47 +03:00 committed by GitHub
commit 2c0f992b6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,7 @@
{ lib
, stdenv
, fetchpatch
, nixosTests
, python3
, radicale3
}:
@ -47,6 +49,14 @@ in python.pkgs.buildPythonApplication rec {
hash = "sha256-pOLug5MnVdKaw5wedABewomID9LU0hZPCf4kZKKU1yA=";
};
patches = [
(fetchpatch {
name = "add-missing-comma-in-setup.py.patch";
url = "https://github.com/etesync/etesync-dav/commit/040cb7b57205e70515019fb356e508a6414da11e.patch";
hash = "sha256-87IpIQ87rgpinvbRwUlWd0xeegn0zfVSiDFYNUqPerg=";
})
];
propagatedBuildInputs = with python.pkgs; [
appdirs
etebase
@ -57,10 +67,15 @@ in python.pkgs.buildPythonApplication rec {
setuptools
(python.pkgs.toPythonModule (radicale3.override { python3 = python; }))
requests
types-setuptools
] ++ requests.optional-dependencies.socks;
doCheck = false;
passthru.tests = {
inherit (nixosTests) etesync-dav;
};
meta = with lib; {
homepage = "https://www.etesync.com/";
description = "Secure, end-to-end encrypted, and privacy respecting sync for contacts, calendars and tasks";