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

41 lines
1.1 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, python3Packages, glibcLocales }:
2015-01-30 15:39:51 +00:00
# Packaging documentation at:
# https://github.com/untitaker/vdirsyncer/blob/master/docs/packaging.rst
let
pythonPackages = python3Packages;
in
pythonPackages.buildPythonApplication rec {
2017-10-31 15:22:38 +00:00
version = "0.16.3";
2015-01-30 15:39:51 +00:00
name = "vdirsyncer-${version}";
src = fetchurl {
2016-05-26 07:44:53 +00:00
url = "mirror://pypi/v/vdirsyncer/${name}.tar.gz";
2017-10-31 15:22:38 +00:00
sha256 = "0dpwbfi97ksijqng191659m8k0v215y8ld95w8gb126m4m96qpzw";
2015-01-30 15:39:51 +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
requests_toolbelt
requests
requests_oauthlib # required for google oauth sync
2015-01-30 15:39:51 +00:00
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 15:48:59 +00:00
meta = with stdenv.lib; {
homepage = https://github.com/pimutils/vdirsyncer;
2015-01-30 15:39:51 +00:00
description = "Synchronize calendars and contacts";
2017-01-31 10:00:14 +00:00
maintainers = with maintainers; [ matthiasbeyer jgeerds ];
platforms = platforms.all;
license = licenses.mit;
2015-01-30 15:39:51 +00:00
};
}