2021-01-25 00:26:54 -08:00
|
|
|
{ lib
|
2018-10-16 13:44:15 -07:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-01-05 03:19:23 -08:00
|
|
|
, isPy3k
|
2018-10-16 13:44:15 -07:00
|
|
|
, pytz
|
|
|
|
, gflags
|
|
|
|
, dateutil
|
|
|
|
, mox
|
|
|
|
, python
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-apputils";
|
2018-11-04 02:35:01 -08:00
|
|
|
version = "0.4.2";
|
2021-01-05 03:19:23 -08:00
|
|
|
disabled = isPy3k;
|
2018-10-16 13:44:15 -07:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-01-05 03:19:23 -08:00
|
|
|
sha256 = "0afw0gxmh0yw5g7xsmw49gs8bbp0zyhbh6fr1b0h48f3a439v5a7";
|
2018-10-16 13:44:15 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
sed -i '/ez_setup/d' setup.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ pytz gflags dateutil mox ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
${python.executable} setup.py google_test
|
|
|
|
'';
|
|
|
|
|
2018-11-24 05:19:07 -08:00
|
|
|
# ERROR:root:Trying to access flag test_tmpdir before flags were parsed.
|
|
|
|
doCheck = false;
|
2018-10-16 13:44:15 -07:00
|
|
|
|
2021-01-10 23:54:33 -08:00
|
|
|
meta = with lib; {
|
2018-10-16 13:44:15 -07:00
|
|
|
description = "Google Application Utilities for Python";
|
2019-12-08 08:50:31 -08:00
|
|
|
homepage = "https://github.com/google/google-apputils";
|
2018-10-16 13:44:15 -07:00
|
|
|
license = licenses.asl20;
|
2021-01-05 03:19:23 -08:00
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
2018-10-16 13:44:15 -07:00
|
|
|
};
|
|
|
|
}
|