2016-03-13 08:37:57 +01:00
|
|
|
{ stdenv, fetchurl, pythonPackages, glibcLocales }:
|
2015-01-30 16:39:51 +01:00
|
|
|
|
2016-03-13 08:37:57 +01:00
|
|
|
# Packaging documentation at:
|
|
|
|
# https://github.com/untitaker/vdirsyncer/blob/master/docs/packaging.rst
|
2016-02-19 13:12:11 +01:00
|
|
|
pythonPackages.buildPythonApplication rec {
|
2016-03-24 17:30:52 +01:00
|
|
|
version = "0.9.3";
|
2015-01-30 16:39:51 +01:00
|
|
|
name = "vdirsyncer-${version}";
|
|
|
|
namePrefix = "";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2015-08-07 12:16:28 +02:00
|
|
|
url = "https://pypi.python.org/packages/source/v/vdirsyncer/${name}.tar.gz";
|
2016-03-24 17:30:52 +01:00
|
|
|
sha256 = "1wjhzjfcvwz68j6wc5cmjsw69ggwcpfy7jp7z7q6fnwwp4dr98lc";
|
2015-01-30 16:39:51 +01:00
|
|
|
};
|
|
|
|
|
2015-05-30 01:03:48 +02:00
|
|
|
propagatedBuildInputs = with pythonPackages; [
|
2015-10-28 17:11:40 +01:00
|
|
|
click click-log click-threading
|
2015-01-30 16:39:51 +01:00
|
|
|
lxml
|
|
|
|
requests_toolbelt
|
|
|
|
requests2
|
|
|
|
atomicwrites
|
|
|
|
];
|
|
|
|
|
2016-03-13 08:37:57 +01: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 16:48:59 +01:00
|
|
|
|
2015-05-30 01:26:29 +02:00
|
|
|
meta = with stdenv.lib; {
|
2016-03-24 17:30:52 +01:00
|
|
|
homepage = https://github.com/pimutils/vdirsyncer;
|
2015-01-30 16:39:51 +01:00
|
|
|
description = "Synchronize calendars and contacts";
|
2015-05-30 01:26:29 +02:00
|
|
|
maintainers = with maintainers; [ matthiasbeyer jgeerds ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
license = licenses.mit;
|
2015-01-30 16:39:51 +01:00
|
|
|
};
|
|
|
|
}
|