pythonPackages.google_apputils: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov
2018-10-16 16:44:15 -04:00
committed by Frederik Rietdijk
parent 7300b2c714
commit 1e00e981cb
2 changed files with 39 additions and 25 deletions

View File

@@ -0,0 +1,38 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, pytz
, gflags
, dateutil
, mox
, python
}:
buildPythonPackage rec {
pname = "google-apputils";
version = "0.4.1";
src = fetchPypi {
inherit pname version;
sha256 = "1sxsm5q9vr44qzynj8l7p3l7ffb0zl1jdqhmmzmalkx941nbnj1b";
};
preConfigure = ''
sed -i '/ez_setup/d' setup.py
'';
propagatedBuildInputs = [ pytz gflags dateutil mox ];
checkPhase = ''
${python.executable} setup.py google_test
'';
doCheck = true;
meta = with stdenv.lib; {
description = "Google Application Utilities for Python";
homepage = http://code.google.com/p/google-apputils-python;
license = licenses.asl20;
};
}