2016-03-13 07:37:57 +00:00
|
|
|
{ stdenv, fetchurl, pythonPackages, 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-02-19 12:12:11 +00:00
|
|
|
pythonPackages.buildPythonApplication rec {
|
2016-04-23 21:52:34 +01:00
|
|
|
version = "0.10.0";
|
2015-01-30 15:39:51 +00:00
|
|
|
name = "vdirsyncer-${version}";
|
|
|
|
namePrefix = "";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2016-04-23 21:52:34 +01:00
|
|
|
url = "https://pypi.python.org/packages/0b/fb/c42223e1e9169e4770194e62143d431755724b080d8cb77f14705b634815/vdirsyncer-0.10.0.tar.gz";
|
|
|
|
sha256 = "1gf86sbd6w0w4zayh9r3irlp5jwrzbjikjc0vs5zkdpa5c199f78";
|
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
|
|
|
|
requests2
|
|
|
|
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";
|
2016-04-23 21:52:34 +01:00
|
|
|
maintainers = with maintainers; [ matthiasbeyer jgeerds DamienCassou ];
|
2015-05-30 00:26:29 +01:00
|
|
|
platforms = platforms.all;
|
|
|
|
license = licenses.mit;
|
2015-01-30 15:39:51 +00:00
|
|
|
};
|
|
|
|
}
|