225cc1c106
vdirsyncer > 0.13.0 does not support python 2 anymore. https://github.com/pimutils/vdirsyncer/blob/master/CHANGELOG.rst#version-0130
39 lines
1.1 KiB
Nix
39 lines
1.1 KiB
Nix
{ stdenv, fetchurl, python3Packages, glibcLocales }:
|
|
|
|
# Packaging documentation at:
|
|
# https://github.com/untitaker/vdirsyncer/blob/master/docs/packaging.rst
|
|
let
|
|
pythonPackages = python3Packages;
|
|
in
|
|
pythonPackages.buildPythonApplication rec {
|
|
version = "0.13.1";
|
|
name = "vdirsyncer-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://pypi/v/vdirsyncer/${name}.tar.gz";
|
|
sha256 = "1c4kipcc7dx1rn5j1a1x7wckz09mm9ihwakf3ramwn1y78q5zanb";
|
|
};
|
|
|
|
propagatedBuildInputs = with pythonPackages; [
|
|
click click-log click-threading
|
|
requests_toolbelt
|
|
requests2
|
|
atomicwrites
|
|
];
|
|
|
|
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/pimutils/vdirsyncer;
|
|
description = "Synchronize calendars and contacts";
|
|
maintainers = with maintainers; [ matthiasbeyer jgeerds DamienCassou ];
|
|
platforms = platforms.all;
|
|
license = licenses.mit;
|
|
};
|
|
}
|