2016-10-08 08:09:55 +01:00
|
|
|
{ stdenv, fetchurl, python3Packages, glibcLocales }:
|
2015-01-30 15:39:51 +00:00
|
|
|
|
2016-03-13 07:37:57 +00:00
|
|
|
# Packaging documentation at:
|
|
|
|
# https://github.com/untitaker/vdirsyncer/blob/master/docs/packaging.rst
|
2016-10-08 08:09:55 +01:00
|
|
|
let
|
|
|
|
pythonPackages = python3Packages;
|
|
|
|
in
|
2016-02-19 12:12:11 +00:00
|
|
|
pythonPackages.buildPythonApplication rec {
|
2018-02-21 13:21:32 +00:00
|
|
|
version = "0.16.4";
|
2015-01-30 15:39:51 +00:00
|
|
|
name = "vdirsyncer-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2016-05-26 08:44:53 +01:00
|
|
|
url = "mirror://pypi/v/vdirsyncer/${name}.tar.gz";
|
2018-02-21 13:21:32 +00:00
|
|
|
sha256 = "03wva48bgv1ad3df6plc9b8xxh6k8bcaxrhlzwh81c9mzn5bspzv";
|
2015-01-30 15:39:51 +00:00
|
|
|
};
|
|
|
|
|
2015-05-30 00:03:48 +01:00
|
|
|
propagatedBuildInputs = with pythonPackages; [
|
2015-10-28 16:11:40 +00:00
|
|
|
click click-log click-threading
|
2015-01-30 15:39:51 +00:00
|
|
|
requests_toolbelt
|
2017-05-07 11:55:45 +01:00
|
|
|
requests
|
2017-10-29 08:31:15 +00:00
|
|
|
requests_oauthlib # required for google oauth sync
|
2015-01-30 15:39:51 +00:00
|
|
|
atomicwrites
|
|
|
|
];
|
|
|
|
|
2016-03-13 07:37:57 +00:00
|
|
|
buildInputs = with pythonPackages; [hypothesis pytest pytest-localserver pytest-subtesthack setuptools_scm ] ++ [ glibcLocales ];
|
|
|
|
|
|
|
|
LC_ALL = "en_US.utf8";
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
make DETERMINISTIC_TESTS=true test
|
|
|
|
'';
|
2016-02-18 15:48:59 +00:00
|
|
|
|
2015-05-30 00:26:29 +01:00
|
|
|
meta = with stdenv.lib; {
|
2016-03-24 16:30:52 +00:00
|
|
|
homepage = https://github.com/pimutils/vdirsyncer;
|
2015-01-30 15:39:51 +00:00
|
|
|
description = "Synchronize calendars and contacts";
|
2017-01-31 10:00:14 +00:00
|
|
|
maintainers = with maintainers; [ matthiasbeyer jgeerds ];
|
2015-05-30 00:26:29 +01:00
|
|
|
platforms = platforms.all;
|
|
|
|
license = licenses.mit;
|
2015-01-30 15:39:51 +00:00
|
|
|
};
|
|
|
|
}
|