nixpkgs/pkgs/development/python-modules/google-cloud-core/default.nix

39 lines
816 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, pytestCheckHook
, python
, google-api-core
, grpcio
, mock
}:
2017-12-20 22:48:57 +00:00
buildPythonPackage rec {
pname = "google-cloud-core";
version = "1.6.0";
2017-12-20 22:48:57 +00:00
src = fetchPypi {
inherit pname version;
sha256 = "c6abb18527545379fc82efc4de75ce9a3772ccad2fc645adace593ba097cbb02";
2017-12-20 22:48:57 +00:00
};
propagatedBuildInputs = [ google-api-core ];
2017-12-20 22:48:57 +00:00
checkInputs = [ mock pytestCheckHook ];
# prevent google directory from shadowing google imports
preCheck = ''
rm -r google
2017-12-20 22:48:57 +00:00
'';
pythonImportsCheck = [ "google.cloud" ];
meta = with lib; {
2017-12-20 22:48:57 +00:00
description = "API Client library for Google Cloud: Core Helpers";
homepage = "https://github.com/googleapis/python-cloud-core";
2017-12-20 22:48:57 +00:00
license = licenses.asl20;
maintainers = with maintainers; [ SuperSandro2000 ];
2017-12-20 22:48:57 +00:00
};
}