2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-16 21:44:15 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-01-05 11:19:23 +00:00
|
|
|
, isPy3k
|
2018-10-16 21:44:15 +01:00
|
|
|
, pytz
|
|
|
|
, gflags
|
|
|
|
, dateutil
|
|
|
|
, mox
|
|
|
|
, python
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-apputils";
|
2018-11-04 10:35:01 +00:00
|
|
|
version = "0.4.2";
|
2021-01-05 11:19:23 +00:00
|
|
|
disabled = isPy3k;
|
2018-10-16 21:44:15 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-01-05 11:19:23 +00:00
|
|
|
sha256 = "0afw0gxmh0yw5g7xsmw49gs8bbp0zyhbh6fr1b0h48f3a439v5a7";
|
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
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-10-16 21:44:15 +01:00
|
|
|
description = "Google Application Utilities for Python";
|
2019-12-08 16:50:31 +00:00
|
|
|
homepage = "https://github.com/google/google-apputils";
|
2018-10-16 21:44:15 +01:00
|
|
|
license = licenses.asl20;
|
2021-01-05 11:19:23 +00:00
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
2018-10-16 21:44:15 +01:00
|
|
|
};
|
|
|
|
}
|