8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
39 lines
769 B
Nix
39 lines
769 B
Nix
{ 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 = "https://github.com/google/google-apputils";
|
|
license = licenses.asl20;
|
|
};
|
|
|
|
}
|