diff options
Diffstat (limited to 'pkgs/tools/misc/vdirsyncer/default.nix')
-rw-r--r-- | pkgs/tools/misc/vdirsyncer/default.nix | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/pkgs/tools/misc/vdirsyncer/default.nix b/pkgs/tools/misc/vdirsyncer/default.nix index d6789bf52bc5..fedfaa48aa37 100644 --- a/pkgs/tools/misc/vdirsyncer/default.nix +++ b/pkgs/tools/misc/vdirsyncer/default.nix @@ -1,32 +1,35 @@ -{ stdenv, fetchurl, pythonPackages }: +{ stdenv, fetchurl, pythonPackages, glibcLocales }: +# Packaging documentation at: +# https://github.com/untitaker/vdirsyncer/blob/master/docs/packaging.rst pythonPackages.buildPythonApplication rec { - version = "0.9.0"; + version = "0.9.3"; name = "vdirsyncer-${version}"; namePrefix = ""; src = fetchurl { url = "https://pypi.python.org/packages/source/v/vdirsyncer/${name}.tar.gz"; - sha256 = "0s9awjr9v60rr80xcpwmdhkf4v1yqnydahjmxwvxmh64565is465"; + sha256 = "1wjhzjfcvwz68j6wc5cmjsw69ggwcpfy7jp7z7q6fnwwp4dr98lc"; }; propagatedBuildInputs = with pythonPackages; [ click click-log click-threading lxml - setuptools - setuptools_scm requests_toolbelt requests2 atomicwrites ]; - # Unfortunately, checking this package seems a bit too complex - # https://github.com/NixOS/nixpkgs/pull/13098#issuecomment-185914025 - # https://github.com/untitaker/vdirsyncer/issues/334#issuecomment-185872854 - doCheck = false; + buildInputs = with pythonPackages; [hypothesis pytest pytest-localserver pytest-subtesthack setuptools_scm ] ++ [ glibcLocales ]; + + LC_ALL = "en_US.utf8"; + + checkPhase = '' + make DETERMINISTIC_TESTS=true test + ''; meta = with stdenv.lib; { - homepage = https://github.com/untitaker/vdirsyncer; + homepage = https://github.com/pimutils/vdirsyncer; description = "Synchronize calendars and contacts"; maintainers = with maintainers; [ matthiasbeyer jgeerds ]; platforms = platforms.all; |