summary refs log tree commit diff
path: root/pkgs/development/python-modules/zake/default.nix
blob: 1d1d21a462ec563b646711102a012aa3c8511445 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{ lib, stdenv
, buildPythonPackage
, fetchPypi
, kazoo
, six
, testtools
, python
}:

buildPythonPackage rec {
  pname = "zake";
  version = "0.2.2";

  src = fetchPypi {
    inherit pname version;
    sha256 = "1rp4xxy7qp0s0wnq3ig4ji8xsl31g901qkdp339ndxn466cqal2s";
  };

  propagatedBuildInputs = [ kazoo six ];
  buildInputs = [ testtools ];
  checkPhase = ''
    # Skip test - fails with our new kazoo version
    substituteInPlace zake/tests/test_client.py \
      --replace "test_child_watch_no_create" "_test_child_watch_no_create"

    ${python.interpreter} -m unittest discover zake/tests
  '';

  meta = with lib; {
    homepage = "https://github.com/yahoo/Zake";
    description = "A python package that works to provide a nice set of testing utilities for the kazoo library";
    license = licenses.asl20;
    broken = true;
  };

}