nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 google-api-core,
6 google-cloud-core,
7 mock,
8 pytestCheckHook,
9 setuptools,
10}:
11
12buildPythonPackage rec {
13 pname = "google-cloud-runtimeconfig";
14 version = "0.36.0";
15 pyproject = true;
16
17 src = fetchPypi {
18 pname = "google_cloud_runtimeconfig";
19 inherit version;
20 hash = "sha256-+pDFyELolBTJfz/RIoNbGNHC30tyKhZ7D6XiQTKO2t0=";
21 };
22
23 build-system = [ setuptools ];
24
25 dependencies = [
26 google-api-core
27 google-cloud-core
28 ];
29
30 nativeCheckInputs = [
31 mock
32 pytestCheckHook
33 ];
34
35 # Client tests require credentials
36 disabledTests = [ "client_options" ];
37
38 # prevent google directory from shadowing google imports
39 preCheck = ''
40 rm -r google
41 '';
42
43 pythonImportsCheck = [ "google.cloud.runtimeconfig" ];
44
45 meta = {
46 description = "Google Cloud RuntimeConfig API client library";
47 homepage = "https://github.com/googleapis/python-runtimeconfig";
48 changelog = "https://github.com/googleapis/python-runtimeconfig/blob/v${version}/CHANGELOG.md";
49 license = lib.licenses.asl20;
50 maintainers = [ ];
51 };
52}