2018-10-16 21:44:15 +01:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytz
|
|
|
|
, gflags
|
|
|
|
, dateutil
|
|
|
|
, mox
|
|
|
|
, python
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-apputils";
|
2018-11-04 10:35:01 +00:00
|
|
|
version = "0.4.2";
|
2018-10-16 21:44:15 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-11-04 10:35:01 +00:00
|
|
|
sha256 = "47959d0651c32102c10ad919b8a0ffe0ae85f44b8457ddcf2bdc0358fb03dc29";
|
2018-10-16 21:44:15 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
sed -i '/ez_setup/d' setup.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ pytz gflags dateutil mox ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
${python.executable} setup.py google_test
|
|
|
|
'';
|
|
|
|
|
2018-11-24 13:19:07 +00:00
|
|
|
# ERROR:root:Trying to access flag test_tmpdir before flags were parsed.
|
|
|
|
doCheck = false;
|
2018-10-16 21:44:15 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Google Application Utilities for Python";
|
|
|
|
homepage = http://code.google.com/p/google-apputils-python;
|
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|