summary refs log tree commit diff
path: root/pkgs/development/python-modules/google_apputils/default.nix
blob: 51b03bf559423b94857bf74030d163c19cfbc39b (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
37
38
39
{ stdenv
, buildPythonPackage
, fetchPypi
, pytz
, gflags
, dateutil
, mox
, python
}:

buildPythonPackage rec {
  pname = "google-apputils";
  version = "0.4.2";

  src = fetchPypi {
    inherit pname version;
    sha256 = "47959d0651c32102c10ad919b8a0ffe0ae85f44b8457ddcf2bdc0358fb03dc29";
  };

  preConfigure = ''
    sed -i '/ez_setup/d' setup.py
  '';

  propagatedBuildInputs = [ pytz gflags dateutil mox ];

  checkPhase = ''
    ${python.executable} setup.py google_test
  '';

  # ERROR:root:Trying to access flag test_tmpdir before flags were parsed.
  doCheck = false;

  meta = with stdenv.lib; {
    description = "Google Application Utilities for Python";
    homepage = http://code.google.com/p/google-apputils-python;
    license = licenses.asl20;
  };

}