Merge pull request #6076 (vdirsyncer).

Adds vdirsyncer and dependencies (request_toolbelt and atomicwrites).

It's to synchronize calendars and addressbooks between two storages (for
example between CalDAV/CardDAV and a local folders/files).
This commit is contained in:
aszlig 2015-02-07 17:10:21 +01:00
commit e05bade342
No known key found for this signature in database
GPG key ID: D0EBD0EC8C2DC961
3 changed files with 72 additions and 0 deletions

View file

@ -0,0 +1,32 @@
{ lib, fetchurl, pythonPackages }:
pythonPackages.buildPythonPackage rec {
version = "0.4.2";
name = "vdirsyncer-${version}";
namePrefix = "";
src = fetchurl {
url = https://github.com/untitaker/vdirsyncer/archive/0.4.2.tar.gz;
sha256 = "008181mglbrp5jsvpxr59b6w4mw26h4s4gwij152i47mfbrizsl4";
};
pythonPath = with pythonPackages; [
icalendar
click
requests
lxml
setuptools
requests_toolbelt
requests2
atomicwrites
];
meta = {
homepage = https://github.com/untitaker/vdirsyncer;
description = "Synchronize calendars and contacts";
maintainers = [ lib.maintainers.matthiasbeyer ];
platforms = lib.platforms.all;
license = lib.licenses.mit;
};
}

View file

@ -11462,6 +11462,10 @@ let
vcprompt = callPackage ../applications/version-management/vcprompt { };
vdirsyncer = callPackage ../tools/misc/vdirsyncer {
pythonPackages = python3Packages;
};
vdpauinfo = callPackage ../tools/X11/vdpauinfo { };
veracity = callPackage ../applications/version-management/veracity {};

View file

@ -492,6 +492,23 @@ let
};
};
atomicwrites = buildPythonPackage rec {
version = "0.1.0";
name = "atomicwrites-${version}";
src = pkgs.fetchurl {
url = "https://pypi.python.org/packages/source/a/atomicwrites/atomicwrites-${version}.tar.gz";
sha256 = "1lxz0xhnzihqlvl1h6j2nfxjqqgr4s08196z5phnlcz2s7d5z0mg";
};
meta = {
description = "Atomic file writes on POSIX";
homepage = https://pypi.python.org/pypi/atomicwrites/0.1.0;
maintainers = with maintainers; [ matthiasbeyer ];
};
};
argparse = buildPythonPackage (rec {
name = "argparse-1.2.1";
@ -8955,6 +8972,25 @@ let
};
};
requests_toolbelt = buildPythonPackage rec {
version = "0.3.0";
name = "requests-toolbelt-${version}";
src = pkgs.fetchurl {
url = "https://github.com/sigmavirus24/requests-toolbelt/archive/${version}.tar.gz";
sha256 = "177lqpm2czx81pjg0zfs1dkbbmcn5yf1y5qxj23x6y5d28518qwl";
};
propagatedBuildInputs = with self; [ requests2 ];
meta = {
description = "A toolbelt of useful classes and functions to be used with python-requests";
homepage = http://toolbelt.rtfd.org;
maintainers = with maintainers; [ matthiasbeyer ];
};
};
retry_decorator = buildPythonPackage rec {
name = "retry_decorator-1.0.0";
src = pkgs.fetchurl {