forked from mirrors/nixpkgs
pythonPackages.google_apputils: refactor move to python-modules
This commit is contained in:
parent
7300b2c714
commit
1e00e981cb
38
pkgs/development/python-modules/google_apputils/default.nix
Normal file
38
pkgs/development/python-modules/google_apputils/default.nix
Normal 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;
|
||||
};
|
||||
|
||||
}
|
|
@ -2400,31 +2400,7 @@ in {
|
|||
|
||||
google_api_python_client = callPackage ../development/python-modules/google-api-python-client { };
|
||||
|
||||
google_apputils = buildPythonPackage rec {
|
||||
name = "google-apputils-0.4.1";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "mirror://pypi/g/google-apputils/${name}.tar.gz";
|
||||
sha256 = "1sxsm5q9vr44qzynj8l7p3l7ffb0zl1jdqhmmzmalkx941nbnj1b";
|
||||
};
|
||||
|
||||
preConfigure = ''
|
||||
sed -i '/ez_setup/d' setup.py
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = with self; [ pytz gflags dateutil mox ];
|
||||
|
||||
checkPhase = ''
|
||||
${python.executable} setup.py google_test
|
||||
'';
|
||||
|
||||
doCheck = true;
|
||||
|
||||
meta = {
|
||||
description = "Google Application Utilities for Python";
|
||||
homepage = http://code.google.com/p/google-apputils-python;
|
||||
};
|
||||
};
|
||||
google_apputils = callPackage ../development/python-modules/google_apputils { };
|
||||
|
||||
google_auth = callPackage ../development/python-modules/google_auth { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue