pytrainer: unpin python 3.10
[NixPkgs.git] / pkgs / development / python-modules / google-cloud-runtimeconfig / default.nix
blob7f6cc83c1c9747cdae163df1953a86939f80b596
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   google-api-core,
6   google-cloud-core,
7   mock,
8   pytestCheckHook,
9   pythonOlder,
12 buildPythonPackage rec {
13   pname = "google-cloud-runtimeconfig";
14   version = "0.34.0";
15   format = "setuptools";
17   disabled = pythonOlder "3.7";
19   src = fetchPypi {
20     inherit pname version;
21     hash = "sha256-hyxvTChxCGC6YjjvYGqaJDvgBbve7EjzfPELl+LB2D8=";
22   };
24   propagatedBuildInputs = [
25     google-api-core
26     google-cloud-core
27   ];
29   nativeCheckInputs = [
30     mock
31     pytestCheckHook
32   ];
34   # Client tests require credentials
35   disabledTests = [ "client_options" ];
37   # prevent google directory from shadowing google imports
38   preCheck = ''
39     rm -r google
40   '';
42   pythonImportsCheck = [ "google.cloud.runtimeconfig" ];
44   meta = with lib; {
45     description = "Google Cloud RuntimeConfig API client library";
46     homepage = "https://github.com/googleapis/python-runtimeconfig";
47     changelog = "https://github.com/googleapis/python-runtimeconfig/blob/v${version}/CHANGELOG.md";
48     license = licenses.asl20;
49     maintainers = [ ];
50   };