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-03-13 07:37:57 +00:00
|
|
|
version = "0.9.2";
|
2015-01-30 15:39:51 +00:00
|
|
|
name = "vdirsyncer-${version}";
|
|
|
|
namePrefix = "";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2015-08-07 10:16:28 +00:00
|
|
|
url = "https://pypi.python.org/packages/source/v/vdirsyncer/${name}.tar.gz";
|
2016-03-13 07:37:57 +00:00
|
|
|
sha256 = "1g1107cz4sk41d2z6k6pn9n2fzd26m72j8aj33zn483vfvmyrc4q";
|
2015-01-30 15:39:51 +00:00
|
|
|
};
|
|
|
|
|
2015-05-29 23:03:48 +00: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
|
|
|
lxml
|
|
|
|
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-29 23:26:29 +00:00
|
|
|
meta = with stdenv.lib; {
|
2015-01-30 15:39:51 +00:00
|
|
|
homepage = https://github.com/untitaker/vdirsyncer;
|
|
|
|
description = "Synchronize calendars and contacts";
|
2015-05-29 23:26:29 +00:00
|
|
|
maintainers = with maintainers; [ matthiasbeyer jgeerds ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
license = licenses.mit;
|
2015-01-30 15:39:51 +00:00
|
|
|
};
|
|
|
|
}
|