1{ lib
2, buildPythonPackage
3, fetchPypi
4, isPy3k
5, pytz
6, gflags
7, python-dateutil
8, mox
9, python
10}:
11
12buildPythonPackage rec {
13 pname = "google-apputils";
14 version = "0.4.2";
15 disabled = isPy3k;
16
17 src = fetchPypi {
18 inherit pname version;
19 sha256 = "0afw0gxmh0yw5g7xsmw49gs8bbp0zyhbh6fr1b0h48f3a439v5a7";
20 };
21
22 preConfigure = ''
23 sed -i '/ez_setup/d' setup.py
24 '';
25
26 propagatedBuildInputs = [ pytz gflags python-dateutil mox ];
27
28 checkPhase = ''
29 ${python.executable} setup.py google_test
30 '';
31
32 # ERROR:root:Trying to access flag test_tmpdir before flags were parsed.
33 doCheck = false;
34
35 meta = with lib; {
36 description = "Google Application Utilities for Python";
37 homepage = "https://github.com/google/google-apputils";
38 license = licenses.asl20;
39 maintainers = with maintainers; [ SuperSandro2000 ];
40 };
41}