diff --git a/pkgs/development/python-modules/google_apputils/default.nix b/pkgs/development/python-modules/google_apputils/default.nix new file mode 100644 index 000000000000..66bad999dfb0 --- /dev/null +++ b/pkgs/development/python-modules/google_apputils/default.nix @@ -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; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 2456cb9d6923..16410267a97a 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -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 { };