etesync-dav: 0.20.0 -> 0.30.6

This commit is contained in:
Nicholas von Klitzing 2020-11-30 22:10:07 +01:00
parent 5fb387e91f
commit 231ca64ed9
3 changed files with 26 additions and 13 deletions

View File

@ -103,6 +103,7 @@ in
ergo = handleTest ./ergo.nix {};
etcd = handleTestOn ["x86_64-linux"] ./etcd.nix {};
etcd-cluster = handleTestOn ["x86_64-linux"] ./etcd-cluster.nix {};
etesync-dav = handleTest ./etesync-dav.nix {};
fancontrol = handleTest ./fancontrol.nix {};
fcitx = handleTest ./fcitx {};
ferm = handleTest ./ferm.nix {};

View File

@ -0,0 +1,21 @@
import ./make-test-python.nix ({ pkgs, ... }: {
name = "etesync-dav";
meta = with pkgs.stdenv.lib.maintainers; {
maintainers = [ _3699n ];
};
machine = { config, pkgs, ... }: {
environment.systemPackages = [ pkgs.curl pkgs.etesync-dav ];
};
testScript =
''
machine.wait_for_unit("multi-user.target")
machine.succeed("etesync-dav --version")
machine.execute("etesync-dav &")
machine.wait_for_open_port(37358)
with subtest("Check that the web interface is accessible"):
assert "Add User" in machine.succeed("curl -s http://localhost:37358/.web/add/")
'';
})

View File

@ -2,31 +2,22 @@
python3Packages.buildPythonApplication rec {
pname = "etesync-dav";
version = "0.20.0";
version = "0.30.6";
src = python3Packages.fetchPypi {
inherit pname version;
sha256 = "1q8h89hqi4kxphn1g5nbcia0haz5k57is9rycwaabm55mj9s9fah";
sha256 = "0cjz4p3a750fwvrxbzwda0sidw7nscahvppdshbsx49i6qrczpbg";
};
postPatch = ''
substituteInPlace setup.py --replace "Radicale==" "Radicale>="
'';
propagatedBuildInputs = with python3Packages; [
etebase
etesync
flask
flask_wtf
radicale3
];
checkInputs = with python3Packages; [
pytest
];
checkPhase = ''
pytest
'';
doCheck = false;
meta = with lib; {
homepage = "https://www.etesync.com/";