3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/misc/vdirsyncer/default.nix
2017-02-15 15:27:51 +01:00

40 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.14.1";
name = "vdirsyncer-${version}";
src = fetchurl {
url = "mirror://pypi/v/vdirsyncer/${name}.tar.gz";
sha256 = "044f01fjd8dpz4y9dm3qcc1a8cihcxxbr1sz6y6fkvglpb6k85y5";
};
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 ];
platforms = platforms.all;
license = licenses.mit;
};
}