nixpkgs/pkgs/tools/misc/vdirsyncer/default.nix

37 lines
1.0 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, pythonPackages, glibcLocales }:
2015-01-30 07:39:51 -08:00
# Packaging documentation at:
# https://github.com/untitaker/vdirsyncer/blob/master/docs/packaging.rst
pythonPackages.buildPythonApplication rec {
2016-08-01 03:40:33 -07:00
version = "0.11.3";
2015-01-30 07:39:51 -08:00
name = "vdirsyncer-${version}";
src = fetchurl {
2016-05-26 00:44:53 -07:00
url = "mirror://pypi/v/vdirsyncer/${name}.tar.gz";
2016-08-01 03:40:33 -07:00
sha256 = "10majl58vdpxgbddjqgwblvl7akvvr4c2c8iaxnf3kgyh01jq6k9";
2015-01-30 07:39:51 -08:00
};
propagatedBuildInputs = with pythonPackages; [
2015-10-28 09:11:40 -07:00
click click-log click-threading
2015-01-30 07:39:51 -08:00
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
'';
2016-02-18 07:48:59 -08:00
meta = with stdenv.lib; {
homepage = https://github.com/pimutils/vdirsyncer;
2015-01-30 07:39:51 -08:00
description = "Synchronize calendars and contacts";
maintainers = with maintainers; [ matthiasbeyer jgeerds DamienCassou ];
platforms = platforms.all;
license = licenses.mit;
2015-01-30 07:39:51 -08:00
};
}