@@ -3759,15 +3759,23 @@ in {
37593759 };
37603760
37613761 click-threading = buildPythonPackage rec {
3762− version = "0.4.0";
3762+ version = "0.4.2";
37633763 name = "click-threading-${version}";
37643764
37653765 src = pkgs.fetchurl {
37663766 url = "mirror://pypi/c/click-threading/${name}.tar.gz";
3767− sha256 = "1lrn2inlzz5lr8ay36dz9gmlnqqvdnh14rcm2nmhaxvbbz0gl8qq";
3767+ sha256 = "400b0bb63d9096b6bf2806efaf742a1cc8b6c88e0484f0afe7d7a7f0e9870609";
37683768 };
37693769
3770− propagatedBuildInputs = with self; [ click ];
3770+ checkInputs = with self; [ pytest ];
3771+ propagatedBuildInputs = with self; [ click ] ++ optional (!isPy3k) futures;
3772+
3773+ checkPhase = ''
3774+ py.test
3775+ '';
3776+
3777+ # Tests are broken on 3.x
3778+ doCheck = !isPy3k;
37713779
37723780 meta = {
37733781 homepage = https://github.com/click-contrib/click-threading/;