Merge pull request #126015 from fabaff/bump-google

This commit is contained in:
Sandro 2021-06-21 12:29:58 +02:00 committed by GitHub
commit df394c1c46
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
36 changed files with 414 additions and 119 deletions

View file

@ -1,18 +1,23 @@
{ lib
, buildPythonPackage
, fetchPypi
, fetchFromGitHub
, stringcase
, typing-inspect
, marshmallow-enum
, hypothesis
, mypy
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "dataclasses-json";
version = "0.5.2";
src = fetchPypi {
inherit pname version;
sha256 = "56ec931959ede74b5dedf65cf20772e6a79764d20c404794cce0111c88c085ff";
src = fetchFromGitHub {
owner = "lidatong";
repo = pname;
rev = "v${version}";
sha256 = "1gcnm41rwg0jvq4vhr57vv9hyasws425zl8h4p05x2nzq86l0w1n";
};
propagatedBuildInputs = [
@ -21,6 +26,19 @@ buildPythonPackage rec {
marshmallow-enum
];
checkInputs = [
hypothesis
mypy
pytestCheckHook
];
disabledTests = [
# AssertionError: Type annotations check failed
"test_type_hints"
];
pythonImportsCheck = [ "dataclasses_json" ];
meta = with lib; {
description = "Simple API for encoding and decoding dataclasses to and from JSON";
homepage = "https://github.com/lidatong/dataclasses-json";

View file

@ -2,11 +2,11 @@
buildPythonPackage rec {
pname = "google-cloud-access-context-manager";
version = "0.1.2";
version = "0.1.3";
src = fetchPypi {
inherit pname version;
sha256 = "1qy7wv1xn7g3x5z0vvv0pwmxhin4hw2m9fs9iklnghy00vg37v0b";
sha256 = "sha256-VFPmTKiFwwL1THpjDeFeHgssXvIRB+ppvZb9aU1yPV4=";
};
propagatedBuildInputs = [ google-api-core ];

View file

@ -0,0 +1,45 @@
{ lib
, buildPythonPackage
, fetchPypi
, google-api-core
, grpc_google_iam_v1
, mock
, proto-plus
, pytest-asyncio
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "google-cloud-appengine-logging";
version = "0.1.0";
src = fetchPypi {
inherit pname version;
sha256 = "0rkayy2qzsc70b0rdvzd2bxwp5f07rfqb95cyj57dkphq71mrrhw";
};
propagatedBuildInputs = [
google-api-core
grpc_google_iam_v1
proto-plus
];
checkInputs = [
mock
pytestCheckHook
pytest-asyncio
];
pythonImportsCheck = [
"google.cloud.appengine_logging"
"google.cloud.appengine_logging_v1"
];
meta = with lib; {
description = "Appengine logging client library";
homepage = "https://github.com/googleapis/python-appengine-logging";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}

View file

@ -26,7 +26,7 @@ buildPythonPackage rec {
postPatch = ''
substituteInPlace setup.py \
--replace '"google-cloud-org-policy >= 0.1.2, < 0.2.0dev"' '"google-cloud-org-policy >= 0.1.2, < 0.2.1"'
--replace '"google-cloud-org-policy >= 0.1.2, < 0.2.0dev"' '"google-cloud-org-policy >= 0.1.2"'
'';
propagatedBuildInputs = [

View file

@ -14,14 +14,18 @@
buildPythonPackage rec {
pname = "google-cloud-automl";
version = "2.2.0";
version = "2.3.0";
src = fetchPypi {
inherit pname version;
sha256 = "874defad583e90e55a3e83aff27eb5fe108d9197d839cd45f3eacf2395881806";
sha256 = "sha256-UjYzSWtP4cp0p7Is2qIGWBgEhjgTv0YeL0N9D7etIbY=";
};
propagatedBuildInputs = [ google-api-core libcst proto-plus ];
propagatedBuildInputs = [
google-api-core
libcst
proto-plus
];
checkInputs = [
google-cloud-storage
@ -35,10 +39,13 @@ buildPythonPackage rec {
preCheck = ''
# do not shadow imports
rm -r google
# requires credentials
rm tests/system/gapic/v1beta1/test_system_tables_client_v1.py
'';
disabledTestPaths = [
# requires credentials
"tests/system/gapic/v1beta1/test_system_tables_client_v1.py"
];
disabledTests = [
# requires credentials
"test_prediction_client_client_info"

View file

@ -11,11 +11,11 @@
buildPythonPackage rec {
pname = "google-cloud-bigquery-datatransfer";
version = "3.1.0";
version = "3.1.1";
src = fetchPypi {
inherit pname version;
sha256 = "98065257189388b6cc797478c4b2bdf86e9e8cdcaca5d170ded027646444a586";
sha256 = "sha256-msjNBqYL/cUE85+80IblGAyGhM/+/ndFqf9qY5xXVik=";
};
propagatedBuildInputs = [ google-api-core libcst proto-plus ];

View file

@ -0,0 +1,45 @@
{ lib
, buildPythonPackage
, fetchPypi
, google-api-core
, grpc_google_iam_v1
, mock
, proto-plus
, pytest-asyncio
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "google-cloud-bigquery-logging";
version = "0.1.0";
src = fetchPypi {
inherit pname version;
sha256 = "0s8vlw157z10yzzkrfyzfl31iad96wfl3ywk9g3gmmh0jfgy0gfj";
};
propagatedBuildInputs = [
google-api-core
grpc_google_iam_v1
proto-plus
];
checkInputs = [
mock
pytestCheckHook
pytest-asyncio
];
pythonImportsCheck = [
"google.cloud.bigquery_logging"
"google.cloud.bigquery_logging_v1"
];
meta = with lib; {
description = "Bigquery logging client library";
homepage = "https://github.com/googleapis/python-bigquery-logging";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}

View file

@ -17,11 +17,11 @@
buildPythonPackage rec {
pname = "google-cloud-bigquery";
version = "2.13.1";
version = "2.18.0";
src = fetchPypi {
inherit pname version;
sha256 = "915f93c61c03d1d6024d5b19355bb96af25da9f924d0b5bab5cde851e1bd48f4";
sha256 = "sha256-0JLyWfQKN7kYnXW/DRJp3ZH+EesLv7/CXJPmxXYtb4M=";
};
propagatedBuildInputs = [
@ -51,6 +51,8 @@ buildPythonPackage rec {
# requires credentials
"test_bigquery_magic"
"TestBigQuery"
# Mocking of _ensure_bqstorage_client fails
"test_to_arrow_ensure_bqstorage_client_wo_bqstorage"
];
pythonImportsCheck = [

View file

@ -1,33 +1,55 @@
{ lib
, buildPythonPackage
, fetchPypi
, grpc_google_iam_v1
, google-api-core
, google-cloud-core
, pytest
, grpc_google_iam_v1
, libcst
, mock
, proto-plus
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "google-cloud-bigtable";
version = "1.7.0";
version = "2.2.0";
src = fetchPypi {
inherit pname version;
sha256 = "90bd53a19c33c34101b8567c82a6dc0386af4118d70e1ad69b49375358a21aa6";
sha256 = "sha256-89fXmr3jHTtp8QOMFeueJwslHJ7Q6srQ/Kxsp0mLlKU=";
};
checkInputs = [ pytest mock ];
propagatedBuildInputs = [ grpc_google_iam_v1 google-api-core google-cloud-core ];
propagatedBuildInputs = [
google-api-core
google-cloud-core
grpc_google_iam_v1
libcst
proto-plus
];
checkInputs = [
mock
pytestCheckHook
];
checkPhase = ''
# Prevent google directory from shadowing google imports
rm -r google
pytest tests/unit -k 'not policy'
'';
disabledTests = [
"policy"
];
pythonImportsCheck = [
"google.cloud.bigtable_admin_v2"
"google.cloud.bigtable_v2"
"google.cloud.bigtable"
];
meta = with lib; {
description = "Google Cloud Bigtable API client library";
homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python";
homepage = "https://github.com/googleapis/python-bigtable";
license = licenses.asl20;
maintainers = [ maintainers.costrouc ];
};

View file

@ -12,11 +12,11 @@
buildPythonPackage rec {
pname = "google-cloud-container";
version = "2.4.0";
version = "2.4.1";
src = fetchPypi {
inherit pname version;
sha256 = "c62d15f58459fbe83ba5789f800ac27b4be9a1d7735f6c6b702cd6c3f8c6f0c9";
sha256 = "sha256-59k8o5ndb7X9D5kZAkhTHJxYPRqF580snuSFSVRZ7ng=";
};
propagatedBuildInputs = [ google-api-core grpc_google_iam_v1 libcst proto-plus ];

View file

@ -11,11 +11,11 @@
buildPythonPackage rec {
pname = "google-cloud-dataproc";
version = "2.3.1";
version = "2.4.0";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-TADApBkE4DvEFkVFy56Flh2s6XR9uGxzGTf5aspohsA=";
sha256 = "sha256-blNz/r5CDisjddIlKychKfEaN/8biKdYcyKTEGO+jTg=";
};
propagatedBuildInputs = [ google-api-core libcst proto-plus ];

View file

@ -13,24 +13,37 @@
buildPythonPackage rec {
pname = "google-cloud-datastore";
version = "2.1.0";
version = "2.1.3";
src = fetchPypi {
inherit pname version;
sha256 = "1yyk9ix1jms5q4kk76cfxzy42wzzyl5qladdswjy5l0pg6iypr8i";
sha256 = "sha256-56UQdZudVf9jyYPjxCy/XDX5tzEPTWEevjaX2mV2vLQ=";
};
propagatedBuildInputs = [ google-api-core google-cloud-core libcst proto-plus ];
propagatedBuildInputs = [
google-api-core
google-cloud-core
libcst
proto-plus
];
checkInputs = [ google-cloud-testutils mock pytestCheckHook pytest-asyncio ];
checkInputs = [
google-cloud-testutils
mock
pytestCheckHook
pytest-asyncio
];
preCheck = ''
# directory shadows imports
rm -r google
# requires credentials
rm tests/system/test_system.py
'';
disabledTestPaths = [
# Requires credentials
"tests/system/test_system.py"
];
pythonImportsCheck = [
"google.cloud.datastore"
"google.cloud.datastore_admin_v1"

View file

@ -12,11 +12,11 @@
buildPythonPackage rec {
pname = "google-cloud-dlp";
version = "3.0.1";
version = "3.1.0";
src = fetchPypi {
inherit pname version;
sha256 = "193c2c012639f0c063999e0b899f92d70763be605d5528f3d1da93d6734a1aa8";
sha256 = "sha256-sPSPx5Y36MOjd81D8qDMpkWJ3YWQfRlEHqBn3N75NB4=";
};
propagatedBuildInputs = [ google-api-core libcst proto-plus ];

View file

@ -21,12 +21,21 @@ buildPythonPackage rec {
postPatch = ''
substituteInPlace setup.py \
--replace 'google-cloud-logging>=1.14.0, <2.1' 'google-cloud-logging>=1.14.0'
--replace 'google-cloud-logging>=1.14.0, <2.4' 'google-cloud-logging>=1.14.0'
'';
propagatedBuildInputs = [ google-cloud-logging libcst proto-plus ];
propagatedBuildInputs = [
google-cloud-logging
libcst
proto-plus
];
checkInputs = [ google-cloud-testutils mock pytestCheckHook pytest-asyncio ];
checkInputs = [
google-cloud-testutils
mock
pytestCheckHook
pytest-asyncio
];
disabledTests = [
# require credentials
@ -34,8 +43,8 @@ buildPythonPackage rec {
"test_report_exception"
];
# prevent google directory from shadowing google imports
preCheck = ''
# prevent google directory from shadowing google imports
rm -r google
'';

View file

@ -13,11 +13,11 @@
buildPythonPackage rec {
pname = "google-cloud-firestore";
version = "2.1.0";
version = "2.1.1";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-kG68fG9EqwvE72nzc89MXwEQ/YYEM9tYH6zK2iTCFJo=";
sha256 = "sha256-73sKlKHX7ThsdZJyT22wiqbema7o3aOIaWS8WYrri+w=";
};
propagatedBuildInputs = [
@ -39,10 +39,10 @@ buildPythonPackage rec {
rm -r google
'';
pytestFlagsArray = [
# tests are broken
"--ignore=tests/system/test_system.py"
"--ignore=tests/system/test_system_async.py"
disabledTestPaths = [
# Tests are broken
"tests/system/test_system.py"
"tests/system/test_system_async.py"
];
disabledTests = [

View file

@ -0,0 +1,45 @@
{ lib
, buildPythonPackage
, fetchPypi
, google-api-core
, grpc_google_iam_v1
, mock
, proto-plus
, pytest-asyncio
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "google-cloud-iam-logging";
version = "0.1.0";
src = fetchPypi {
inherit pname version;
sha256 = "19a8s634w2m1b16zq8f185cpaw7k6d0c7c61g1vzm19jl213rhiw";
};
propagatedBuildInputs = [
google-api-core
grpc_google_iam_v1
proto-plus
];
checkInputs = [
mock
pytestCheckHook
pytest-asyncio
];
pythonImportsCheck = [
"google.cloud.iam_logging"
"google.cloud.iam_logging_v1"
];
meta = with lib; {
description = "IAM Service Logging client library";
homepage = "https://github.com/googleapis/python-iam-logging";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}

View file

@ -12,11 +12,11 @@
buildPythonPackage rec {
pname = "google-cloud-iam";
version = "2.1.0";
version = "2.2.0";
src = fetchPypi {
inherit pname version;
sha256 = "d34604508e3e87b9161ccd5ff29474867ac91ffb8d29e1a2fc9ff0e26d934b73";
sha256 = "sha256-H2S3jIVMBinyCQMBHW3vKMmBzlaCpSIQMfauHKoKH+o=";
};
propagatedBuildInputs = [ google-api-core libcst proto-plus ];

View file

@ -15,11 +15,11 @@
buildPythonPackage rec {
pname = "google-cloud-logging";
version = "2.3.1";
version = "2.4.0";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-yi3lG7tKi2BkU7vtMIEPsll1UX/JxrNj4G+DJaGQ/+k=";
sha256 = "sha256-BuAqNkK817Zz4dbI16ttoVnapR+8DDrp8RGDZtUej7s=";
};
propagatedBuildInputs = [ google-api-core google-cloud-core proto-plus ];

View file

@ -2,11 +2,11 @@
buildPythonPackage rec {
pname = "google-cloud-org-policy";
version = "0.2.0";
version = "0.3.0";
src = fetchPypi {
inherit pname version;
sha256 = "b463704affab327c1d3fa4af280a858635b5f59a88456b2a08db62a336a352aa";
sha256 = "sha256-7qVemc7siW/8mO4wUXEKJBt9M18kagRyu/+7DLLe9FM=";
};
propagatedBuildInputs = [ google-api-core proto-plus ];

View file

@ -13,24 +13,37 @@
buildPythonPackage rec {
pname = "google-cloud-pubsub";
version = "2.4.1";
version = "2.5.0";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-5gyqZ+JthC/Qja8ZCX79r4K+evuZY5jPZ73cA6hrgSA=";
sha256 = "sha256-hwZVe3FTLHauxIQJ3KwYnKrEfPLey4hQrnVpS/cDJrI=";
};
propagatedBuildInputs = [ grpc_google_iam_v1 google-api-core libcst proto-plus ];
propagatedBuildInputs = [
grpc_google_iam_v1
google-api-core
libcst
proto-plus
];
checkInputs = [ google-cloud-testutils mock pytestCheckHook pytest-asyncio ];
checkInputs = [
google-cloud-testutils
mock
pytestCheckHook
pytest-asyncio
];
preCheck = ''
# prevent google directory from shadowing google imports
rm -r google
# Tests in pubsub_v1 attempt to contact pubsub.googleapis.com
rm -r tests/unit/pubsub_v1
'';
disabledTestPaths = [
# Tests in pubsub_v1 attempt to contact pubsub.googleapis.com
"tests/unit/pubsub_v1"
];
pythonImportsCheck = [ "google.cloud.pubsub" ];
meta = with lib; {

View file

@ -11,11 +11,11 @@
buildPythonPackage rec {
pname = "google-cloud-redis";
version = "2.1.0";
version = "2.1.1";
src = fetchPypi {
inherit pname version;
sha256 = "957f436986275dcc82483906b424dcabe8d1f8c08ae5c9677bf7547a314b0a59";
sha256 = "sha256-2X/ek2ECarZ/U1V6j+nz2yYSGVmrWG/kU/QqQB1A+0w=";
};
propagatedBuildInputs = [ google-api-core libcst proto-plus ];

View file

@ -9,11 +9,11 @@
buildPythonPackage rec {
pname = "google-cloud-runtimeconfig";
version = "0.32.1";
version = "0.32.2";
src = fetchPypi {
inherit pname version;
sha256 = "1bd8hlp0ssi20ds4gknbxai8mih6xiz8b60ab7p0ngpdqp1kw52p";
sha256 = "sha256-UoWu+Y/bmmkefFR4nnxJPFFnS253/myWcXKujq27oCY=";
};
propagatedBuildInputs = [ google-api-core google-cloud-core ];

View file

@ -12,11 +12,11 @@
buildPythonPackage rec {
pname = "google-cloud-securitycenter";
version = "1.1.0";
version = "1.3.0";
src = fetchPypi {
inherit pname version;
sha256 = "1lgz6qpsfv4b7p5ff4sdpjpaddxpbazdvlcrqr1i0c0qil2lkm2i";
sha256 = "sha256-cyJ58BPB7mYWbmHFxPAxnf2JX0b8kqLJF4hdcppaNNI=";
};
propagatedBuildInputs = [ grpc_google_iam_v1 google-api-core libcst proto-plus ];

View file

@ -14,25 +14,42 @@
buildPythonPackage rec {
pname = "google-cloud-spanner";
version = "3.3.0";
version = "3.4.0";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-XnOCmxQ6YCO1C7RYHzcZY4ihrt2KommWTkTD9y+B5tg=";
sha256 = "sha256-8o7pr9msuMfIN7UMX+/gppmD3MWXt2hBqb7vcLUE22M=";
};
propagatedBuildInputs = [ google-cloud-core grpc_google_iam_v1 libcst proto-plus sqlparse ];
propagatedBuildInputs = [
google-cloud-core
grpc_google_iam_v1
libcst
proto-plus
sqlparse
];
checkInputs = [ google-cloud-testutils mock pytestCheckHook pytest-asyncio ];
checkInputs = [
google-cloud-testutils
mock
pytestCheckHook
pytest-asyncio
];
preCheck = ''
# prevent google directory from shadowing google imports
rm -r google
# disable tests which require credentials
rm tests/system/test_{system,system_dbapi}.py
rm tests/unit/spanner_dbapi/test_{connect,connection,cursor}.py
'';
disabledTestPaths = [
# Requires credentials
"tests/system/test_system.py"
"tests/system/test_system_dbapi.py"
"tests/unit/spanner_dbapi/test_connect.py"
"tests/unit/spanner_dbapi/test_connection.py"
"tests/unit/spanner_dbapi/test_cursor.py"
];
pythonImportsCheck = [
"google.cloud.spanner_admin_database_v1"
"google.cloud.spanner_admin_instance_v1"

View file

@ -11,11 +11,11 @@
buildPythonPackage rec {
pname = "google-cloud-speech";
version = "2.2.1";
version = "2.4.0";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-AviYDI68Z11M/rqHgQTQugYNemPTA5nW4aVQTiwMYxI=";
sha256 = "sha256-mR7gYBvJVhEOhzruGnREHWYiexDNWBGVV1Q1iEOE84s=";
};
propagatedBuildInputs = [ libcst google-api-core proto-plus ];

View file

@ -13,11 +13,11 @@
buildPythonPackage rec {
pname = "google-cloud-storage";
version = "1.37.0";
version = "1.38.0";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-IAPF7Uc/mzfQRfMMTIvn0w19Dripe80sWLOovFScTMw=";
sha256 = "sha256-FiAR1m9kuNxdeTZgml2vAGbMUhIxVGrqAsEmpVWURsQ=";
};
propagatedBuildInputs = [

View file

@ -12,11 +12,11 @@
buildPythonPackage rec {
pname = "google-cloud-tasks";
version = "2.2.0";
version = "2.3.0";
src = fetchPypi {
inherit pname version;
sha256 = "6be2f2bca14b4eb1c1bdb0f4ba1dadf791e79a2a3e1fae762e5631a3d9fe094e";
sha256 = "sha256-fMJNOJBzxAr0Hi/AkUF97G5YrwfbmxKVhT/D1UXIDP4=";
};
propagatedBuildInputs = [ google-api-core grpc_google_iam_v1 libcst proto-plus ];

View file

@ -11,11 +11,11 @@
buildPythonPackage rec {
pname = "google-cloud-texttospeech";
version = "2.3.0";
version = "2.4.0";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-zzssVnXA1xe3270yEOREJ9GdmyRPjV1F4EBelf9AQ/c=";
sha256 = "sha256-xQzCG134i2lmgNiqw6tshoIMDk0HHWpdzZtjSkVs9Z8=";
};
propagatedBuildInputs = [ libcst google-api-core proto-plus ];

View file

@ -12,11 +12,11 @@
buildPythonPackage rec {
pname = "google-cloud-trace";
version = "1.1.0";
version = "1.2.0";
src = fetchPypi {
inherit pname version;
sha256 = "1lvcm4w1l7hiqg64kdscch3f3bq19q9ii49xj4lljn2a4xffxl8v";
sha256 = "sha256-NoNHel10dFEzKjjWyM6mUrWZHbH25MOZB/o2eXCKwhg=";
};
propagatedBuildInputs = [ google-api-core google-cloud-core proto-plus ];

View file

@ -14,16 +14,26 @@
buildPythonPackage rec {
pname = "google-cloud-translate";
version = "3.1.0";
version = "3.2.0";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-zVRD2lWRaKtSlZn84Rqpj+a1OT7Wcak524TKsBctueE=";
sha256 = "sha256-jNlX9LKajHqYPgpCfCcSUzxBu3AHt2qMyI1sZQdcZ5o=";
};
propagatedBuildInputs = [ google-api-core google-cloud-core libcst proto-plus ];
propagatedBuildInputs = [
google-api-core
google-cloud-core
libcst
proto-plus
];
checkInputs = [ google-cloud-testutils mock pytestCheckHook pytest-asyncio ];
checkInputs = [
google-cloud-testutils
mock
pytestCheckHook
pytest-asyncio
];
preCheck = ''
# prevent shadowing imports

View file

@ -11,11 +11,11 @@
buildPythonPackage rec {
pname = "google-cloud-videointelligence";
version = "2.1.0";
version = "2.2.0";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-gn/KWf3A4SkTqt9rqwYcsaxvfKXPvb7DXJ+zryGjWIA=";
sha256 = "sha256-CBBt3uyQon9Lxwb3Jn7BxS8r/3Rbr9RxC8aJhGDI6aY=";
};
propagatedBuildInputs = [ google-api-core proto-plus ];

View file

@ -11,11 +11,11 @@
buildPythonPackage rec {
pname = "google-cloud-vision";
version = "2.3.0";
version = "2.3.1";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-6XYHADzyk0/WSGk9wni9bOtVURJ+U2Eve8LAh0Eg7KI=";
sha256 = "sha256-Nnqm+f2OSKBRTOpuB7PQBvAaunCA8XoontDfkuh/f4Q=";
};
propagatedBuildInputs = [ libcst google-api-core proto-plus];

View file

@ -11,11 +11,11 @@
buildPythonPackage rec {
pname = "google-cloud-websecurityscanner";
version = "1.1.0";
version = "1.2.0";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-lrMnp9jVndz0C8VdreVudYdwh7zSdRniPHYm9BNdjak=";
sha256 = "sha256-Lg6yoqOu88lZHT/H9FPdgVgSDm7oLUaPm7T1UsXB8Fo=";
};
propagatedBuildInputs = [ google-api-core libcst proto-plus ];

View file

@ -1,35 +1,65 @@
{ lib, buildPythonPackage, fetchFromGitHub
, pbr, click, dataclasses-json, htmlmin, jinja2, markdown2, pygments, pytz, pyyaml, requests, pytestCheckHook, beautifulsoup4, tox
{ lib
, beautifulsoup4
, buildPythonPackage
, click
, dataclasses-json
, fetchFromGitHub
, htmlmin
, jinja2
, markdown2
, pbr
, pygments
, pytestCheckHook
, pytz
, pyyaml
, requests
}:
buildPythonPackage rec {
pname = "json-schema-for-humans";
version = "0.27.1";
version = "0.31.0";
src = fetchFromGitHub {
owner = "coveooss";
repo = pname;
rev = "v${version}";
sha256 = "0d2a4a2lcqssr5g9rmc76f86nkqc9grixh507vzc9fi1h3gbi765";
sha256 = "1aj1w0qxdw8d6mf5vngk0xjgs7z8vzwc2aycahnkqg7q3cagq19n";
};
nativeBuildInputs = [ pbr ];
propagatedBuildInputs = [
click dataclasses-json htmlmin jinja2 markdown2
pygments pytz pyyaml requests
click
dataclasses-json
htmlmin
jinja2
markdown2
pygments
pytz
pyyaml
requests
];
preBuild = ''
export PBR_VERSION=0.0.1
'';
checkInputs = [ pytestCheckHook beautifulsoup4 ];
pytestFlagsArray = [ "--ignore tests/generate_test.py" ];
checkInputs = [
beautifulsoup4
pytestCheckHook
];
disabledTests = [
# Tests require network access
"test_references_url"
];
pythonImportsCheck = [ "json_schema_for_humans" ];
meta = with lib; {
description = "Quickly generate HTML documentation from a JSON schema";
homepage = "https://github.com/coveooss/json-schema-for-humans";
license = licenses.asl20;
homepage = "https://github.com/coveooss/json-schema-for-humans";
license = licenses.asl20;
maintainers = with maintainers; [ astro ];
};
}

View file

@ -1,21 +1,22 @@
{ lib
, black
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, hypothesis
, dataclasses
, hypothesmith
, pytestCheckHook
, fetchFromGitHub
, hypothesis
, isort
, pytest
, python
, pythonOlder
, pyyaml
, typing-extensions
, typing-inspect
, black
, isort
}:
buildPythonPackage rec {
pname = "libcst";
version = "0.3.18";
disabled = pythonOlder "3.6";
# Some files for tests missing from PyPi
# https://github.com/Instagram/LibCST/issues/331
@ -26,25 +27,37 @@ buildPythonPackage rec {
sha256 = "sha256-19yGaKBLpGASSPv/aSX0kx9lh2JxKExHJDKKtuBbuqI=";
};
disabled = pythonOlder "3.6";
propagatedBuildInputs = [
hypothesis
typing-extensions
typing-inspect
pyyaml
] ++ lib.optional (pythonOlder "3.7") [
dataclasses
];
propagatedBuildInputs = [ hypothesis typing-extensions typing-inspect pyyaml ]
++ lib.optional (pythonOlder "3.7") dataclasses;
checkInputs = [ black hypothesmith isort pytestCheckHook ];
# can't run tests due to circular dependency on hypothesmith -> licst
doCheck = false;
checkInputs = [
black
isort
pytest
];
preCheck = ''
python -m libcst.codegen.generate visitors
python -m libcst.codegen.generate return_types
${python.interpreter} -m libcst.codegen.generate visitors
${python.interpreter} -m libcst.codegen.generate return_types
# Can't run all tests due to circular dependency on hypothesmith -> libcst
rm -r {libcst/tests,libcst/codegen/tests,libcst/m*/tests}
'';
disabledTests = [
# No files are generated
"test_codemod_formatter_error_input"
];
pythonImportsCheck = [ "libcst" ];
meta = with lib; {
description = "A Concrete Syntax Tree (CST) parser and serializer library for Python.";
description = "Concrete Syntax Tree (CST) parser and serializer library for Python";
homepage = "https://github.com/Instagram/libcst";
license = with licenses; [ mit asl20 psfl ];
maintainers = with maintainers; [ ruuda SuperSandro2000 ];

View file

@ -2920,6 +2920,8 @@ in {
google-cloud-access-context-manager = callPackage ../development/python-modules/google-cloud-access-context-manager { };
google-cloud-appengine-logging = callPackage ../development/python-modules/google-cloud-appengine-logging { };
google-cloud-asset = callPackage ../development/python-modules/google-cloud-asset { };
google-cloud-automl = callPackage ../development/python-modules/google-cloud-automl { };
@ -2928,6 +2930,8 @@ in {
google-cloud-bigquery-datatransfer = callPackage ../development/python-modules/google-cloud-bigquery-datatransfer { };
google-cloud-bigquery-logging = callPackage ../development/python-modules/google-cloud-bigquery-logging { };
google-cloud-bigtable = callPackage ../development/python-modules/google-cloud-bigtable { };
google-cloud-container = callPackage ../development/python-modules/google-cloud-container { };
@ -2948,6 +2952,8 @@ in {
google-cloud-iam = callPackage ../development/python-modules/google-cloud-iam { };
google-cloud-iam-logging = callPackage ../development/python-modules/google-cloud-iam-logging { };
google-cloud-iot = callPackage ../development/python-modules/google-cloud-iot { };
google-cloud-kms = callPackage ../development/python-modules/google-cloud-kms { };