Merge branch 'staging-next' into staging

This commit is contained in:
Jan Tojnar
2021-01-07 13:06:41 +01:00
457 changed files with 8204 additions and 3941 deletions
@@ -1,32 +1,31 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, aiounittest
, buildPythonPackage
, fetchPypi
, isPy27
, pytest
, pytestCheckHook
, typing-extensions
}:
buildPythonPackage rec {
pname = "aiosqlite";
version = "0.12.0";
version = "0.16.0";
disabled = isPy27;
src = fetchFromGitHub {
owner = "jreese";
repo = pname;
rev = "v${version}";
sha256 = "090vdv210zfry0bms5b3lmm06yhiyjb8ga96996cqs611l7c2a2j";
src = fetchPypi {
inherit pname version;
sha256 = "1a0fjmlvadyzsml10g5p1qif7192k0swy5zwjp8v48y5zc3yy56h";
};
buildInputs = [
setuptools
];
checkInputs = [
aiounittest
pytestCheckHook
typing-extensions
];
# tests are not pick-up automatically by the hook
pytestFlagsArray = [ "aiosqlite/tests/*.py" ];
meta = with lib; {
description = "Asyncio bridge to the standard sqlite3 module";
homepage = "https://github.com/jreese/aiosqlite";
@@ -0,0 +1,33 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pytest-asyncio
}:
buildPythonPackage rec {
pname = "asyncio-dgram";
version = "1.1.1";
src = fetchFromGitHub {
owner = "jsbronder";
repo = pname;
rev = "v${version}";
sha256 = "1zkmjvq47zw2fsbnzhr5mh9rsazx0z1f8m528ash25jrxsza5crm";
};
checkInputs = [
pytestCheckHook
pytest-asyncio
];
disabledTests = [ "test_protocol_pause_resume" ];
pythonImportsCheck = [ "asyncio_dgram" ];
meta = with lib; {
description = "Python support for higher level Datagram";
homepage = "https://github.com/jsbronder/asyncio-dgram";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}
@@ -9,12 +9,12 @@
buildPythonPackage rec {
pname = "asyncwhois";
version = "0.2.0";
version = "0.2.2";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "0rdmg59jzzfz59b3ckg5187lc0wk9r0pzp9x09nq3xs21mcwqjxz";
sha256 = "59ed35fbe646491b6c3e1dcf6db9b4870c3d44c6c023a1c3badd6226551d7b7e";
};
propagatedBuildInputs = [
@@ -1,4 +1,4 @@
{ lib, buildPythonPackage, fetchPypi, pythonOlder
{ lib, buildPythonPackage, fetchPypi
, attrs
, bidict
, bitstruct
@@ -18,9 +18,7 @@ buildPythonPackage rec {
postPatch = ''
substituteInPlace setup.py \
--replace "bidict>=0.17,<0.18" "bidict" \
--replace "more-itertools>=4.0,<8.0" "more-itertools" \
--replace "pendulum>=2.0,<=3.0,!=2.0.5,!=2.1.0" "pendulum>=2.0,<=3.0"
--replace "'attrs>=18.2,<19.4'" "'attrs'"
'';
propagatedBuildInputs = [
@@ -35,8 +33,6 @@ buildPythonPackage rec {
# No tests
doCheck = false;
disabled = pythonOlder "3.6";
meta = with lib; {
homepage = "https://github.com/thebigmunch/audio-metadata";
description = "A library for reading and, in the future, writing metadata from audio files";
@@ -0,0 +1,32 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, bluepy
}:
buildPythonPackage rec {
pname = "avea";
version = "1.5.1";
src = fetchFromGitHub {
owner = "k0rventen";
repo = pname;
rev = "v${version}";
sha256 = "13s21dnhbh10dd60xq2cklp5jyv46rpl3nivn1imcswp02930ihz";
};
propagatedBuildInputs = [
bluepy
];
# no tests are present
doCheck = false;
pythonImportsCheck = [ "avea" ];
meta = with lib; {
description = "Python module for interacting with Elgato's Avea bulb";
homepage = "https://github.com/k0rventen/avea";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}
@@ -0,0 +1,23 @@
{ lib, buildPythonPackage, fetchPypi }:
buildPythonPackage rec {
pname = "backports-datetime-fromisoformat";
version = "1.0.0";
src = fetchPypi {
inherit pname version;
sha256 = "0p0gyhfqq6gssf3prsy0pcfq5w0wx2w3pcjqbwx3imvc92ls4xwm";
};
# no tests in pypi package
doCheck = false;
pythonImportsCheck = [ "backports.datetime_fromisoformat" ];
meta = with lib; {
description = "Backport of Python 3.7's datetime.fromisoformat";
homepage = "https://github.com/movermeyer/backports.datetime_fromisoformat";
license = licenses.mit;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}
@@ -0,0 +1,24 @@
{ lib, buildPythonPackage, fetchPypi, base58, ecdsa, hidapi, noiseprotocol, protobuf, semver, typing-extensions }:
buildPythonPackage rec {
pname = "bitbox02";
version = "5.1.0";
src = fetchPypi {
inherit pname version;
sha256 = "0hnjjjarr4q22wh03zyyqfhsizzsvg46030kks3qkzbsv29vqqh5";
};
propagatedBuildInputs = [ base58 ecdsa hidapi noiseprotocol protobuf semver typing-extensions ];
# does not contain tests
doCheck = false;
pythonImportsCheck = [ "bitbox02" ];
meta = with lib; {
description = "Firmware code of the BitBox02 hardware wallet";
homepage = "https://github.com/digitalbitbox/bitbox02-firmware/";
license = licenses.asl20;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}
@@ -29,7 +29,7 @@ buildPythonPackage rec {
description = "Python interface to Bluetooth LE on Linux";
homepage = "https://github.com/IanHarvey/bluepy";
maintainers = with maintainers; [ georgewhewell ];
platforms = platforms.linux;
license = licenses.gpl2;
};
}
@@ -13,11 +13,11 @@
buildPythonPackage rec {
pname = "boto3";
version = "1.16.47"; # N.B: if you change this, change botocore too
version = "1.16.49"; # N.B: if you change this, change botocore too
src = fetchPypi {
inherit pname version;
sha256 = "sha256-BXlrpsZfeSFOphvsrlEm1ckk7tihGHS8VTbWEd6rvkc=";
sha256 = "sha256-Tcj3YQmJHZFriUIJhl9Nlo5kqv+kySFH/wJ89NVXrGw=";
};
propagatedBuildInputs = [ botocore jmespath s3transfer ] ++ lib.optionals (!isPy3k) [ futures ];
@@ -12,11 +12,11 @@
buildPythonPackage rec {
pname = "botocore";
version = "1.19.47"; # N.B: if you change this, change boto3 and awscli to a matching version
version = "1.19.49"; # N.B: if you change this, change boto3 and awscli to a matching version
src = fetchPypi {
inherit pname version;
sha256 = "sha256-FVhKhtbLH5TqeF6NPJj67/jd0BBTVuHBBhGNmsEvqJE=";
sha256 = "sha256-7sxhHtOG3sjkfKCH9F5lwTN5RsS1szr3EyXvmkmucN0=";
};
propagatedBuildInputs = [
@@ -59,6 +59,12 @@ buildPythonPackage rec {
'';
disabledTests = [
# These tests depend on the current date, for example because of issues like this.
# This makes it possible for them to succeed on hydra and then begin to fail without
# any code changes.
# https://github.com/aws-cloudformation/cfn-python-lint/issues/1705
# See also: https://github.com/NixOS/nixpkgs/issues/108076
"TestQuickStartTemplates"
# requires git directory
"test_update_docs"
];
@@ -45,6 +45,8 @@ buildPythonPackage rec {
"--deselect=cherrypy/test/test_bus.py::BusMethodTests::test_block"}
'';
__darwinAllowLocalNetworking = true;
meta = with stdenv.lib; {
homepage = "https://www.cherrypy.org";
description = "A pythonic, object-oriented HTTP framework";
@@ -5,7 +5,7 @@
, fetchFromGitHub
, fetchpatch
, freezegun
, google_api_core
, google-api-core
, matplotlib
, networkx
, numpy
@@ -54,7 +54,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [
freezegun
google_api_core
google-api-core
numpy
matplotlib
networkx
@@ -0,0 +1,32 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, aiohttp
}:
buildPythonPackage rec {
pname = "coronavirus";
version = "1.1.1";
src = fetchFromGitHub {
owner = "nabucasa";
repo = pname;
rev = version;
sha256 = "0mx6ifp8irj3669c67hs9r79k8gar6j4aq7d4ji21pllyhyahdwm";
};
propagatedBuildInputs = [
aiohttp
];
# no tests are present
doCheck = false;
pythonImportsCheck = [ "coronavirus" ];
meta = with lib; {
description = "Python client for getting Corona virus info";
homepage = "https://github.com/nabucasa/coronavirus";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}
@@ -10,11 +10,11 @@
buildPythonPackage rec {
pname = "croniter";
version = "0.3.36";
version = "0.3.37";
src = fetchPypi {
inherit pname version;
sha256 = "9d3098e50f7edc7480470455d42f09c501fa1bb7e2fc113526ec6e90b068f32c";
sha256 = "12ced475dfc107bf7c6c1440af031f34be14cd97bbbfaf0f62221a9c11e86404";
};
propagatedBuildInputs = [
@@ -10,6 +10,9 @@ buildPythonPackage rec {
sha256 = "0ygbddpnvp5lby6mr5kz60la3hkvwwzv3wwb3z0w9ngxl0w21pii";
};
doCheck = false;
pythonImportsCheck = [ "demjson" ];
meta = with stdenv.lib; {
description = "Encoder/decoder and lint/validator for JSON (JavaScript Object Notation)";
homepage = "https://github.com/dmeranda/demjson";
+2 -2
View File
@@ -13,13 +13,13 @@
buildPythonPackage rec {
pname = "Django";
version = "3.1.4";
version = "3.1.5";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "edb10b5c45e7e9c0fb1dc00b76ec7449aca258a39ffd613dbd078c51d19c9f03";
sha256 = "2d78425ba74c7a1a74b196058b261b9733a8570782f4e2828974777ccca7edf7";
};
patches = stdenv.lib.optional withGdal
@@ -1,7 +1,7 @@
{ lib, buildPythonPackage, fetchFromGitHub, isPy27 }:
buildPythonPackage rec {
version = "2.0.4";
version = "2.1.0";
pname = "elementpath";
disabled = isPy27; # uses incompatible class syntax
@@ -9,7 +9,7 @@ buildPythonPackage rec {
owner = "sissaschool";
repo = "elementpath";
rev = "v${version}";
sha256 = "0812il5xn7cq0qa0vmkszrvprakfpyxmilk7s918l9kavdy4al8x";
sha256 = "17a0gcwmv87kikirgkgr305f5c7wz34hf7djssx4xbk9lfq9m2lg";
};
# avoid circular dependency with xmlschema which directly depends on this
@@ -1,61 +1,58 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, uvicorn
, starlette
, pydantic
, isPy3k
, pytest
, pytestcov
, pyjwt
, passlib
, starlette
, pytestCheckHook
, pytest-asyncio
, aiosqlite
, peewee
, databases
, flask
, httpx
, passlib
, peewee
, python-jose
, sqlalchemy
}:
buildPythonPackage rec {
pname = "fastapi";
version = "0.55.1";
version = "0.63.0";
format = "flit";
disabled = !isPy3k;
src = fetchFromGitHub {
owner = "tiangolo";
repo = "fastapi";
rev = version;
sha256 = "1515nhwari48v0angyl5z3cfpvwn4al2nvqh0cjd9xgxzvm310s8";
sha256 = "0l3imrcs42pqf9d6k8c1q15k5sqcnapl5zk71xl52mrxhz49lgpi";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace "starlette ==0.13.2" "starlette"
--replace "starlette ==0.13.6" "starlette"
'';
propagatedBuildInputs = [
uvicorn
starlette
pydantic
];
checkInputs = [
pytest
pytestcov
pyjwt
passlib
aiosqlite
peewee
databases
flask
httpx
passlib
peewee
python-jose
pytestCheckHook
pytest-asyncio
sqlalchemy
];
# test_default_response_class.py: requires orjson, which requires rust toolchain
# test_custom_response/test_tutorial001b.py: requires orjson
# tests/test_tutorial/test_sql_databases/test_testing_databases.py: just broken, don't know why
checkPhase = ''
pytest --ignore=tests/test_default_response_class.py \
--ignore=tests/test_tutorial/test_custom_response/test_tutorial001b.py \
--ignore=tests/test_tutorial/test_sql_databases/test_testing_databases.py
'';
# disabled tests require orjson which requires rust nightly
pytestFlagsArray = [ "--ignore=tests/test_default_response_class.py" ];
disabledTests = [ "test_get_custom_response" ];
meta = with lib; {
homepage = "https://github.com/tiangolo/fastapi";
@@ -0,0 +1,30 @@
{ lib, buildPythonPackage, fetchPypi, pytestCheckHook, pytest-benchmark, wasmer }:
buildPythonPackage rec {
pname = "fastdiff";
version = "0.2.0";
src = fetchPypi {
inherit pname version;
sha256 = "1ai95vjchl4396zjl1b69xfqvn9kn1y7c40d9l0qxdss0pcx6fk2";
};
postPatch = ''
substituteInPlace setup.py \
--replace 'pytest-runner' ""
'';
propagatedBuildInputs = [ wasmer ];
checkInputs = [ pytestCheckHook pytest-benchmark ];
pythonImportsCheck = [ "fastdiff" ];
disabledTests = [ "test_native" ];
meta = with lib; {
description = "A fast native implementation of diff algorithm with a pure Python fallback";
homepage = "https://github.com/syrusakbary/fastdiff";
license = licenses.mit;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}
@@ -0,0 +1,45 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, requests
, pytestCheckHook
, httpretty
}:
buildPythonPackage rec {
pname = "fixerio";
version = "0.1.1";
src = fetchFromGitHub {
owner = "amatellanes";
repo = pname;
rev = "v${version}";
sha256 = "1k9ss5jc7sbpkjd2774vbmvljny0wm2lrc8155ha8yk2048jsaxk";
};
postPatch = ''
substituteInPlace setup.py --replace "requests==2.10.0" "requests"
'';
propagatedBuildInputs = [
requests
];
checkInputs = [
httpretty
pytestCheckHook
];
pythonImportsCheck = [ "fixerio" ];
meta = with lib; {
description = "Python client for Fixer.io";
longDescription = ''
Fixer.io is a free JSON API for current and historical foreign
exchange rates published by the European Central Bank.
'';
homepage = "https://github.com/amatellanes/fixerio";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}
@@ -1,18 +1,21 @@
{ lib
, buildPythonPackage
, fetchPypi
, flask
, python-socketio
, coverage
, fetchFromGitHub
, flask
, pytestCheckHook
, python-socketio
}:
buildPythonPackage rec {
pname = "Flask-SocketIO";
version = "4.3.2";
version = "5.0.1";
src = fetchPypi {
inherit pname version;
sha256 = "37001b3507f2fa5d1c8d9c8e211dd88da6c5286ff0ebce16f27cb1b467d25d68";
src = fetchFromGitHub {
owner = "miguelgrinberg";
repo = "Flask-SocketIO";
rev = "v${version}";
sha256 = "01zf6cy95pgc4flgn0740z2my90l7rxwliahp6rb2xbp7rh32cng";
};
propagatedBuildInputs = [
@@ -20,9 +23,12 @@ buildPythonPackage rec {
python-socketio
];
checkInputs = [ coverage ];
# tests only on github, but lates release there is not tagged
doCheck = false;
checkInputs = [
coverage
pytestCheckHook
];
pythonImportsCheck = [ "flask_socketio" ];
meta = with lib; {
description = "Socket.IO integration for Flask applications";
@@ -0,0 +1,34 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, aiohttp
, async-timeout
}:
buildPythonPackage rec {
pname = "glances-api";
version = "0.2.0";
src = fetchFromGitHub {
owner = "home-assistant-ecosystem";
repo = "python-glances-api";
rev = version;
sha256 = "0rgv77n0lvr7d3vk4qc8svipxafmm6s4lfxrl976hsygrhaqidch";
};
propagatedBuildInputs = [
aiohttp
async-timeout
];
# no tests are present
doCheck = false;
pythonImportsCheck = [ "glances_api" ];
meta = with lib; {
description = "Python Wrapper for interacting with the Volkszahler API";
homepage = "https://github.com/home-assistant-ecosystem/python-glances-api";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}
@@ -1,27 +1,44 @@
{ lib, buildPythonPackage, fetchPypi, pythonOlder, google_auth, protobuf
, googleapis_common_protos, requests, grpcio, mock, pytest, pytest-asyncio, pytestCheckHook }:
{ lib
, buildPythonPackage
, fetchPypi
, google-auth
, googleapis_common_protos
, grpcio
, protobuf
, pytz
, requests
, mock
, pytest
, pytest-asyncio
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "google-api-core";
version = "1.23.0";
disabled = pythonOlder "3.5";
version = "1.24.1";
src = fetchPypi {
inherit pname version;
sha256 = "1bb3c485c38eacded8d685b1759968f6cf47dd9432922d34edb90359eaa391e2";
sha256 = "0sflnpgsvk2h1cr1m3mgxx6pzz55xw7sk4y4qdimhs5jdm2fw78g";
};
propagatedBuildInputs =
[ googleapis_common_protos protobuf google_auth requests grpcio ];
propagatedBuildInputs = [
googleapis_common_protos
google-auth
grpcio
protobuf
pytz
requests
];
checkInputs = [ google_auth mock protobuf pytest-asyncio pytestCheckHook ];
checkInputs = [ mock pytest-asyncio pytestCheckHook ];
# prevent google directory from shadowing google imports
preCheck = ''
rm -r google
'';
pythonImportsCheck = [ "google.auth" "google.protobuf" "google.api" ];
pythonImportsCheck = [ "google.api_core" ];
meta = with lib; {
description = "Core Library for Google Client Libraries";
@@ -33,6 +50,6 @@ buildPythonPackage rec {
changelog =
"https://github.com/googleapis/python-api-core/blob/v${version}/CHANGELOG.md";
license = licenses.asl20;
maintainers = with maintainers; [ ];
maintainers = with maintainers; [ SuperSandro2000 ];
};
}
@@ -1,5 +1,5 @@
{ lib, buildPythonPackage, fetchPypi
, google_auth, google-auth-httplib2, google_api_core
, google-auth, google-auth-httplib2, google-api-core
, httplib2, six, uritemplate, oauth2client }:
buildPythonPackage rec {
@@ -15,7 +15,7 @@ buildPythonPackage rec {
doCheck = false;
propagatedBuildInputs = [
google_auth google-auth-httplib2 google_api_core
google-auth google-auth-httplib2 google-api-core
httplib2 six uritemplate oauth2client
];
@@ -1,6 +1,7 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, isPy3k
, pytz
, gflags
, dateutil
@@ -11,10 +12,11 @@
buildPythonPackage rec {
pname = "google-apputils";
version = "0.4.2";
disabled = isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "47959d0651c32102c10ad919b8a0ffe0ae85f44b8457ddcf2bdc0358fb03dc29";
sha256 = "0afw0gxmh0yw5g7xsmw49gs8bbp0zyhbh6fr1b0h48f3a439v5a7";
};
preConfigure = ''
@@ -34,6 +36,6 @@ buildPythonPackage rec {
description = "Google Application Utilities for Python";
homepage = "https://github.com/google/google-apputils";
license = licenses.asl20;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}
@@ -3,13 +3,11 @@
, buildPythonPackage
, fetchPypi
, flask
, mock
, six
, pytest
, pytest-localserver
, google_auth
, google-auth
, httplib2
, mock
, pytestCheckHook
, pytest-localserver
}:
buildPythonPackage rec {
@@ -18,28 +16,25 @@ buildPythonPackage rec {
src = fetchPypi {
inherit pname version;
sha256 = "8d092cc60fb16517b12057ec0bba9185a96e3b7169d86ae12eae98e645b7bc39";
sha256 = "0fdwnx2yd65f5vhnmn39f4xnxac5j6x0pv2p42qifrdi1z32q2cd";
};
checkInputs = [
flask mock six pytest pytest-localserver
];
propagatedBuildInputs = [
google_auth httplib2
google-auth
httplib2
];
checkPhase = ''
py.test
'';
checkInputs = [
flask
mock
pytestCheckHook
pytest-localserver
];
# ImportError: No module named google.auth
doCheck = isPy3k;
meta = {
meta = with lib; {
description = "Google Authentication Library: httplib2 transport";
homepage = "https://github.com/GoogleCloudPlatform/google-auth-library-python-httplib2";
license = lib.licenses.asl20;
license = licenses.asl20;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}
@@ -1,44 +1,37 @@
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, isPy3k
, click
, mock
, pytest
, futures
, google_auth
, pytestCheckHook
, google-auth
, requests_oauthlib
}:
buildPythonPackage rec {
pname = "google-auth-oauthlib";
version = "0.4.2";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "65b65bc39ad8cab15039b35e5898455d3d66296d0584d96fe0e79d67d04c51d9";
sha256 = "1nai9k86g7g7w1pxk105dllncgax8nc5hpmk758b3jnqkb1mpdk5";
};
checkInputs = [
click mock pytest
] ++ lib.optionals (!isPy3k) [ futures ];
propagatedBuildInputs = [
google_auth requests_oauthlib
google-auth
requests_oauthlib
];
doCheck = isPy3k;
checkPhase = ''
rm -fr tests/__pycache__/ google
py.test
'';
checkInputs = [
click
mock
pytestCheckHook
];
meta = with lib; {
description = "Google Authentication Library: oauthlib integration";
homepage = "https://github.com/GoogleCloudPlatform/google-auth-library-python-oauthlib";
license = licenses.asl20;
maintainers = with maintainers; [ terlar ];
maintainers = with maintainers; [ SuperSandro2000 terlar ];
};
}
@@ -0,0 +1,54 @@
{ stdenv
, buildPythonPackage
, fetchpatch
, fetchPypi
, pytestCheckHook
, cachetools
, flask
, freezegun
, mock
, oauth2client
, pyasn1-modules
, pytest-localserver
, responses
, rsa
}:
buildPythonPackage rec {
pname = "google-auth";
version = "1.24.0";
src = fetchPypi {
inherit pname version;
sha256 = "0bmdqkyv8k8n6s8dss4zpbcq1cdxwicpb42kwybd02ia85mh43hb";
};
propagatedBuildInputs = [ pyasn1-modules cachetools rsa ];
checkInputs = [
flask
freezegun
mock
oauth2client
pytestCheckHook
pytest-localserver
responses
];
pythonImportsCheck = [
"google.auth"
"google.oauth2"
];
meta = with stdenv.lib; {
description = "Google Auth Python Library";
longDescription = ''
This library simplifies using Google’s various server-to-server
authentication mechanisms to access Google APIs.
'';
homepage = "https://github.com/googleapis/google-auth-library-python";
changelog = "https://github.com/googleapis/google-auth-library-python/blob/v${version}/CHANGELOG.md";
license = licenses.asl20;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}
@@ -1,4 +1,4 @@
{ lib, buildPythonPackage, fetchPypi, pythonOlder, google_api_core }:
{ lib, buildPythonPackage, fetchPypi, pythonOlder, google-api-core }:
buildPythonPackage rec {
pname = "google-cloud-access-context-manager";
@@ -9,19 +9,19 @@ buildPythonPackage rec {
sha256 = "1qy7wv1xn7g3x5z0vvv0pwmxhin4hw2m9fs9iklnghy00vg37v0b";
};
disabled = pythonOlder "3.5";
propagatedBuildInputs = [ google_api_core ];
propagatedBuildInputs = [ google-api-core ];
# No tests in repo
doCheck = false;
pythonImportsCheck = [ "google.identity.accesscontextmanager" ];
pythonImportsCheck = [
"google.identity.accesscontextmanager"
];
meta = with lib; {
description = "Protobufs for Google Access Context Manager.";
homepage = "https://github.com/googleapis/python-access-context-manager";
license = licenses.asl20;
maintainers = with maintainers; [ austinbutler ];
maintainers = with maintainers; [ austinbutler SuperSandro2000 ];
};
}
@@ -0,0 +1,54 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, grpc_google_iam_v1
, google-api-core
, google-cloud-access-context-manager
, google-cloud-org-policy
, google-cloud-os-config
, google-cloud-testutils
, libcst
, proto-plus
, pytest
, pytest-asyncio
, pytestCheckHook
, mock
}:
buildPythonPackage rec {
pname = "google-cloud-asset";
version = "2.2.0";
src = fetchPypi {
inherit pname version;
sha256 = "05q0yaw6b553qmzylr45zin17h8mvi8yyyxhbv3cxa7f0ahviw8w";
};
propagatedBuildInputs = [
grpc_google_iam_v1
google-api-core
google-cloud-access-context-manager
google-cloud-org-policy
google-cloud-os-config
libcst
proto-plus
];
checkInputs = [ google-cloud-testutils mock pytest-asyncio pytestCheckHook ];
pythonImportsCheck = [
"google.cloud.asset"
"google.cloud.asset_v1"
"google.cloud.asset_v1p1beta1"
"google.cloud.asset_v1p2beta1"
"google.cloud.asset_v1p4beta1"
"google.cloud.asset_v1p5beta1"
];
meta = with stdenv.lib; {
description = "Python Client for Google Cloud Asset API";
homepage = "https://github.com/googleapis/python-asset";
license = licenses.asl20;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}
@@ -0,0 +1,59 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, libcst
, google-api-core
, google-cloud-storage
, google-cloud-testutils
, pandas
, proto-plus
, pytest-asyncio
, mock
}:
buildPythonPackage rec {
pname = "google-cloud-automl";
version = "2.1.0";
src = fetchPypi {
inherit pname version;
sha256 = "520dfe2ee04d28f3088c9c582fa2a534fc272647d5e2e59acc903c0152e61696";
};
propagatedBuildInputs = [ google-api-core libcst proto-plus ];
checkInputs = [
google-cloud-storage
google-cloud-testutils
mock
pandas
pytest-asyncio
pytestCheckHook
];
preCheck = ''
# do not shadow imports
rm -r google
# requires credentials
rm tests/system/gapic/v1beta1/test_system_tables_client_v1.py
'';
disabledTests = [
# requires credentials
"test_prediction_client_client_info"
];
pythonImportsCheck = [
"google.cloud.automl"
"google.cloud.automl_v1"
"google.cloud.automl_v1beta1"
];
meta = with stdenv.lib; {
description = "Cloud AutoML API client library";
homepage = "https://github.com/googleapis/python-automl";
license = licenses.asl20;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}
@@ -0,0 +1,35 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, google-api-core
, libcst
, proto-plus
, pytestCheckHook
, pytest-asyncio
, mock
}:
buildPythonPackage rec {
pname = "google-cloud-bigquery-datatransfer";
version = "3.0.0";
src = fetchPypi {
inherit pname version;
sha256 = "0hmsqvs2srmqcwmli48vd5vw829zax3pwj63fsxig6sdhjlf6j7j";
};
propagatedBuildInputs = [ google-api-core libcst proto-plus ];
checkInputs = [ mock pytestCheckHook pytest-asyncio ];
pythonImportsCheck = [
"google.cloud.bigquery_datatransfer"
"google.cloud.bigquery_datatransfer_v1"
];
meta = with stdenv.lib; {
description = "BigQuery Data Transfer API client library";
homepage = "https://github.com/googleapis/python-bigquery-datatransfer";
license = licenses.asl20;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}
@@ -0,0 +1,58 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, freezegun
, google-cloud-core
, google-cloud-testutils
, google-resumable-media
, grpcio
, ipython
, mock
, pandas
, proto-plus
, pyarrow
}:
buildPythonPackage rec {
pname = "google-cloud-bigquery";
version = "2.6.1";
src = fetchPypi {
inherit pname version;
sha256 = "1vs4im0fixmszh6p77icys9g7fymwmkfc6va0ng9kpjv1h6gv68z";
};
propagatedBuildInputs = [
google-resumable-media
google-cloud-core
proto-plus
pyarrow
];
checkInputs = [
freezegun
google-cloud-testutils
ipython
mock
pandas
pytestCheckHook
];
# prevent google directory from shadowing google imports
preCheck = ''
rm -r google
'';
pythonImportsCheck = [
"google.cloud.bigquery"
"google.cloud.bigquery_v2"
];
meta = with stdenv.lib; {
description = "Google BigQuery API client library";
homepage = "https://github.com/googleapis/python-bigquery";
license = licenses.asl20;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}
@@ -2,8 +2,8 @@
, buildPythonPackage
, fetchPypi
, grpc_google_iam_v1
, google_api_core
, google_cloud_core
, google-api-core
, google-cloud-core
, pytest
, mock
}:
@@ -18,7 +18,7 @@ buildPythonPackage rec {
};
checkInputs = [ pytest mock ];
propagatedBuildInputs = [ grpc_google_iam_v1 google_api_core google_cloud_core ];
propagatedBuildInputs = [ grpc_google_iam_v1 google-api-core google-cloud-core ];
checkPhase = ''
rm -r google
@@ -0,0 +1,43 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, google-api-core
, grpc_google_iam_v1
, libcst
, mock
, proto-plus
, pytestCheckHook
, pytest-asyncio
}:
buildPythonPackage rec {
pname = "google-cloud-container";
version = "2.3.0";
src = fetchPypi {
inherit pname version;
sha256 = "04f9mx1wxy3l9dvzvvr579fnjp1fdqhgplv5y2gl7h2mvn281k8d";
};
propagatedBuildInputs = [ google-api-core grpc_google_iam_v1 libcst proto-plus ];
checkInputs = [ mock pytestCheckHook pytest-asyncio ];
disabledTests = [
# requires credentials
"test_list_clusters"
];
pythonImportsCheck = [
"google.cloud.container"
"google.cloud.container_v1"
"google.cloud.container_v1beta1"
];
meta = with stdenv.lib; {
description = "Google Container Engine API client library";
homepage = "https://github.com/googleapis/python-container";
license = licenses.asl20;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}
@@ -1,31 +1,38 @@
{ stdenv, buildPythonPackage, fetchPypi, pythonOlder, pytestCheckHook, python
, google_api_core, grpcio, mock }:
{ stdenv
, buildPythonPackage
, fetchPypi
, pythonOlder
, pytestCheckHook
, python
, google-api-core
, grpcio
, mock
}:
buildPythonPackage rec {
pname = "google-cloud-core";
version = "1.4.3";
version = "1.5.0";
src = fetchPypi {
inherit pname version;
sha256 = "21afb70c1b0bce8eeb8abb5dca63c5fd37fc8aea18f4b6d60e803bd3d27e6b80";
sha256 = "01liq4nrd2g3ingg8v0ly4c86db8agnr9h1fiz219c7fz0as0xqj";
};
disabled = pythonOlder "3.5";
propagatedBuildInputs = [ google-api-core ];
propagatedBuildInputs = [ google_api_core grpcio ];
checkInputs = [ google_api_core mock pytestCheckHook ];
pythonImportsCheck = [ "google.cloud" ];
checkInputs = [ mock pytestCheckHook ];
# prevent google directory from shadowing google imports
preCheck = ''
rm -r google
'';
pythonImportsCheck = [ "google.cloud" ];
meta = with stdenv.lib; {
description = "API Client library for Google Cloud: Core Helpers";
homepage = "https://github.com/googleapis/python-cloud-core";
license = licenses.asl20;
maintainers = with maintainers; [ ];
maintainers = with maintainers; [ SuperSandro2000 ];
};
}
@@ -0,0 +1,42 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, google-api-core
, mock
, libcst
, proto-plus
, pytestCheckHook
, pytest-asyncio
}:
buildPythonPackage rec {
pname = "google-cloud-dataproc";
version = "2.2.0";
src = fetchPypi {
inherit pname version;
sha256 = "07rv2kgbaqkbd71k5i2zn9kcxasfzkkyai8jnbszhkf92k0lmi41";
};
propagatedBuildInputs = [ google-api-core libcst proto-plus ];
checkInputs = [ mock pytestCheckHook pytest-asyncio ];
disabledTests = [
# requires credentials
"test_list_clusters"
];
pythonImportsCheck = [
"google.cloud.dataproc"
"google.cloud.dataproc_v1"
"google.cloud.dataproc_v1beta2"
];
meta = with stdenv.lib; {
description = "Google Cloud Dataproc API client library";
homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python";
license = licenses.asl20;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}
@@ -0,0 +1,46 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, google-api-core
, google-cloud-core
, libcst
, proto-plus
, mock
, pytestCheckHook
, pytest-asyncio
, google-cloud-testutils
}:
buildPythonPackage rec {
pname = "google-cloud-datastore";
version = "2.1.0";
src = fetchPypi {
inherit pname version;
sha256 = "1yyk9ix1jms5q4kk76cfxzy42wzzyl5qladdswjy5l0pg6iypr8i";
};
propagatedBuildInputs = [ google-api-core google-cloud-core libcst proto-plus ];
checkInputs = [ google-cloud-testutils mock pytestCheckHook pytest-asyncio ];
preCheck = ''
# directory shadows imports
rm -r google
# requires credentials
rm tests/system/test_system.py
'';
pythonImportsCheck = [
"google.cloud.datastore"
"google.cloud.datastore_admin_v1"
"google.cloud.datastore_v1"
];
meta = with stdenv.lib; {
description = "Google Cloud Datastore API client library";
homepage = "https://github.com/googleapis/python-datastore";
license = licenses.asl20;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}
@@ -0,0 +1,42 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, google-api-core
, google-cloud-testutils
, libcst
, proto-plus
, pytestCheckHook
, pytest-asyncio
, mock
}:
buildPythonPackage rec {
pname = "google-cloud-dlp";
version = "3.0.0";
src = fetchPypi {
inherit pname version;
sha256 = "09rnzpdlycr1wv8agcfx05v1prn35ylphsbr07486zqdkh5wjk8p";
};
propagatedBuildInputs = [ google-api-core libcst proto-plus ];
checkInputs = [ google-cloud-testutils mock pytestCheckHook pytest-asyncio ];
disabledTests = [
# requires credentials
"test_inspect_content"
];
pythonImportsCheck = [
"google.cloud.dlp"
"google.cloud.dlp_v2"
];
meta = with stdenv.lib; {
description = "Cloud Data Loss Prevention (DLP) API API client library";
homepage = "https://github.com/googleapis/python-dlp";
license = licenses.asl20;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}
@@ -0,0 +1,41 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, google-api-core
, google-cloud-core
, pytestCheckHook
, mock
}:
buildPythonPackage rec {
pname = "google-cloud-dns";
version = "0.32.1";
src = fetchPypi {
inherit pname version;
sha256 = "01l6pvfic0vxcvd97ckbxyc7ccr9vb9ln4lyhpp3amdmcy0far3j";
};
propagatedBuildInputs = [ google-api-core google-cloud-core ];
checkInputs = [ mock pytestCheckHook ];
preCheck = ''
# don#t shadow python imports
rm -r google
'';
disabledTests = [
# requires credentials
"test_quota"
];
pythonImportsCheck = [ "google.cloud.dns" ];
meta = with stdenv.lib; {
description = "Google Cloud DNS API client library";
homepage = "https://github.com/googleapis/python-dns";
license = licenses.asl20;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}
@@ -1,6 +1,14 @@
{ stdenv, buildPythonPackage, fetchPypi, pytestCheckHook, pythonOlder
, google_cloud_logging, google_cloud_testutils, libcst, mock, proto-plus
, pytest-asyncio }:
{ stdenv
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, google-cloud-logging
, google-cloud-testutils
, libcst
, mock
, proto-plus
, pytest-asyncio
}:
buildPythonPackage rec {
pname = "google-cloud-error-reporting";
@@ -11,13 +19,16 @@ buildPythonPackage rec {
sha256 = "2fd6fe25343f7017c22e2733a0358c64b3171edc1669d0c8a1e1f07f86a048c4";
};
disabled = pythonOlder "3.6";
propagatedBuildInputs = [ google-cloud-logging libcst proto-plus ];
checkInputs = [ google_cloud_testutils mock pytestCheckHook pytest-asyncio ];
propagatedBuildInputs = [ google_cloud_logging libcst proto-plus ];
checkInputs = [ google-cloud-testutils mock pytestCheckHook pytest-asyncio ];
disabledTests = [
# require credentials
"test_report_error_event"
"test_report_exception"
];
# Disable tests that require credentials
disabledTests = [ "test_report_error_event" "test_report_exception" ];
# prevent google directory from shadowing google imports
preCheck = ''
rm -r google
@@ -27,6 +38,6 @@ buildPythonPackage rec {
description = "Stackdriver Error Reporting API client library";
homepage = "https://github.com/googleapis/python-error-reporting";
license = licenses.asl20;
maintainers = [ maintainers.costrouc ];
maintainers = with maintainers; [ SuperSandro2000 ];
};
}
@@ -0,0 +1,64 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, aiounittest
, google-api-core
, google-cloud-testutils
, google-cloud-core
, mock
, proto-plus
, pytestCheckHook
, pytest-asyncio
}:
buildPythonPackage rec {
pname = "google-cloud-firestore";
version = "2.0.2";
src = fetchPypi {
inherit pname version;
sha256 = "1q5s2gpkibnjxal9zrz02jfnazf7rxk0bi0ln5a3di6i47kjnga9";
};
propagatedBuildInputs = [
google-api-core
google-cloud-core
proto-plus
];
checkInputs = [
aiounittest
google-cloud-testutils
mock
pytestCheckHook
pytest-asyncio
];
preCheck = ''
# do not shadow imports
rm -r google
'';
pytestFlagsArray = [
# tests are broken
"--ignore=tests/system/test_system.py"
"--ignore=tests/system/test_system_async.py"
];
disabledTests = [
# requires credentials
"test_collections"
];
pythonImportsCheck = [
"google.cloud.firestore_v1"
"google.cloud.firestore_admin_v1"
];
meta = with stdenv.lib; {
description = "Google Cloud Firestore API client library";
homepage = "https://github.com/googleapis/python-firestore";
license = licenses.asl20;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}
@@ -1,5 +1,14 @@
{ lib, buildPythonPackage, fetchPypi, pytestCheckHook, pythonOlder
, google_api_core, libcst, mock, proto-plus, pytest-asyncio }:
{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, pythonOlder
, google-api-core
, libcst
, mock
, proto-plus
, pytest-asyncio
}:
buildPythonPackage rec {
pname = "google-cloud-iam";
@@ -10,13 +19,19 @@ buildPythonPackage rec {
sha256 = "1zxsx5avs8njiyw32zvsx2yblmmiwxy771x334hbgmy0aqms4lak";
};
propagatedBuildInputs = [ google_api_core libcst proto-plus ];
propagatedBuildInputs = [ google-api-core libcst proto-plus ];
checkInputs = [ mock pytestCheckHook pytest-asyncio ];
pythonImportsCheck = [
"google.cloud.iam_credentials"
"google.cloud.iam_credentials_v1"
];
meta = with lib; {
description = "Google Cloud IAM API client library";
description = "IAM Service Account Credentials API client library";
homepage = "https://github.com/googleapis/python-iam";
license = licenses.asl20;
maintainers = with maintainers; [ austinbutler ];
maintainers = with maintainers; [ austinbutler SuperSandro2000 ];
};
}
@@ -0,0 +1,42 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, grpc_google_iam_v1
, google-api-core
, libcst
, proto-plus
, pytestCheckHook
, pytest-asyncio
, mock
}:
buildPythonPackage rec {
pname = "google-cloud-iot";
version = "2.0.1";
src = fetchPypi {
inherit pname version;
sha256 = "08spn5g0s386x21dgwb46na8aknbwq5d1sn8bh6kayk9fjfbxwla";
};
propagatedBuildInputs = [ grpc_google_iam_v1 google-api-core libcst proto-plus ];
checkInputs = [ mock pytestCheckHook pytest-asyncio ];
disabledTests = [
# requires credentials
"test_list_device_registries"
];
pythonImportsCheck = [
"google.cloud.iot"
"google.cloud.iot_v1"
];
meta = with stdenv.lib; {
description = "Cloud IoT API API client library";
homepage = "https://github.com/googleapis/python-iot";
license = licenses.asl20;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}
@@ -1,5 +1,13 @@
{ stdenv, buildPythonPackage, fetchPypi, pytestCheckHook, pythonOlder
, grpc_google_iam_v1, google_api_core, libcst, mock, proto-plus, pytest-asyncio
{ stdenv
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, grpc_google_iam_v1
, google-api-core
, libcst
, mock
, proto-plus
, pytest-asyncio
}:
buildPythonPackage rec {
@@ -11,19 +19,22 @@ buildPythonPackage rec {
sha256 = "0f3k2ixp1zsgydpvkj75bs2mb805389snyw30hn41c38qq5ksdga";
};
disabled = pythonOlder "3.6";
propagatedBuildInputs = [ grpc_google_iam_v1 google-api-core libcst proto-plus ];
checkInputs = [ mock pytestCheckHook pytest-asyncio ];
propagatedBuildInputs =
[ grpc_google_iam_v1 google_api_core libcst proto-plus ];
# Disable tests that need credentials
disabledTests = [ "test_list_global_key_rings" ];
pythonImportsCheck = [
"google.cloud.kms"
"google.cloud.kms_v1"
];
meta = with stdenv.lib; {
description = "Cloud Key Management Service (KMS) API API client library";
homepage = "https://github.com/googleapis/python-kms";
license = licenses.asl20;
maintainers = [ maintainers.costrouc ];
maintainers = with maintainers; [ SuperSandro2000 ];
};
}
@@ -0,0 +1,37 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, google-api-core
, libcst
, mock
, proto-plus
, pytestCheckHook
, pytest-asyncio
}:
buildPythonPackage rec {
pname = "google-cloud-language";
version = "2.0.0";
src = fetchPypi {
inherit pname version;
sha256 = "123vqfrn7pyn3ia7cmhx8bgafd4gxxlmhf33s3vgspyjck6sprxb";
};
propagatedBuildInputs = [ google-api-core libcst proto-plus ];
checkInputs = [ mock pytestCheckHook pytest-asyncio ];
pythonImportsCheck = [
"google.cloud.language"
"google.cloud.language_v1"
"google.cloud.language_v1beta2"
];
meta = with stdenv.lib; {
description = "Google Cloud Natural Language API client library";
homepage = "https://github.com/googleapis/python-language";
license = licenses.asl20;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}
@@ -0,0 +1,59 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, django
, flask
, google-api-core
, google-cloud-core
, google-cloud-testutils
, mock
, proto-plus
, pytestCheckHook
, pytest-asyncio
, webapp2
}:
buildPythonPackage rec {
pname = "google-cloud-logging";
version = "2.0.2";
src = fetchPypi {
inherit pname version;
sha256 = "0s09vs4rnq4637j8zw7grv3f4j7njqprm744b1knzldj91rg0vmi";
};
propagatedBuildInputs = [ google-api-core google-cloud-core proto-plus ];
checkInputs = [
django
flask
google-cloud-testutils
mock
pytestCheckHook
pytest-asyncio
];
disabledTests = [
# requires credentials
"test_write_log_entries"
];
preCheck = ''
# prevent google directory from shadowing google imports
rm -r google
# requires credentials
rm tests/system/test_system.py tests/unit/test__gapic.py
'';
pythonImortsCheck = [
"google.cloud.logging"
"google.cloud.logging_v2"
];
meta = with stdenv.lib; {
description = "Stackdriver Logging API client library";
homepage = "https://github.com/googleapis/python-logging";
license = licenses.asl20;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}
@@ -0,0 +1,42 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, google-api-core
, google-cloud-testutils
, libcst
, proto-plus
, pytestCheckHook
, pytest-asyncio
, mock
}:
buildPythonPackage rec {
pname = "google-cloud-monitoring";
version = "2.0.0";
src = fetchPypi {
inherit pname version;
sha256 = "07r0y995fin6cbnqlhmd38fv3pfhhqyw04l7nr38sldrd82gmsqx";
};
propagatedBuildInputs = [ libcst google-api-core proto-plus ];
checkInputs = [ google-cloud-testutils mock pytestCheckHook pytest-asyncio ];
disabledTests = [
# requires credentials
"test_list_monitored_resource_descriptors"
];
pythonImportsCheck = [
"google.cloud.monitoring"
"google.cloud.monitoring_v3"
];
meta = with stdenv.lib; {
description = "Stackdriver Monitoring API client library";
homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python";
license = licenses.asl20;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}
@@ -1,4 +1,4 @@
{ lib, buildPythonPackage, fetchPypi, pythonOlder, google_api_core }:
{ lib, buildPythonPackage, fetchPypi, pythonOlder, google-api-core }:
buildPythonPackage rec {
pname = "google-cloud-org-policy";
@@ -9,9 +9,7 @@ buildPythonPackage rec {
sha256 = "0ncgcnbvmgqph54yh2pjx2hh82gnkhsrw5yirp4wlf7jclh6j9xh";
};
disabled = pythonOlder "3.5";
propagatedBuildInputs = [ google_api_core ];
propagatedBuildInputs = [ google-api-core ];
# No tests in repo
doCheck = false;
@@ -22,6 +20,6 @@ buildPythonPackage rec {
description = "Protobufs for Google Cloud Organization Policy.";
homepage = "https://github.com/googleapis/python-org-policy";
license = licenses.asl20;
maintainers = with maintainers; [ austinbutler ];
maintainers = with maintainers; [ austinbutler SuperSandro2000 ];
};
}
@@ -0,0 +1,29 @@
{ lib, buildPythonPackage, fetchPypi, google-api-core, libcst, mock, proto-plus, pytestCheckHook, pytest-asyncio }:
buildPythonPackage rec {
pname = "google-cloud-os-config";
version = "1.0.0";
src = fetchPypi {
inherit pname version;
sha256 = "07zvagy9hwaccwvg1xad5nkalgkria0maa5yxiwqf1yk9f7gbyq1";
};
propagatedBuildInputs = [ google-api-core libcst proto-plus ];
checkInputs = [ mock pytestCheckHook pytest-asyncio ];
pythonImportsCheck = [ "google.cloud.osconfig" ];
disabledTests = [
"test_patch_deployment"
"test_patch_job"
];
meta = with lib; {
description = "Google Cloud OS Config API client library";
homepage = "https://github.com/googleapis/python-os-config";
license = licenses.asl20;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}
@@ -0,0 +1,42 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, google-api-core
, google-cloud-testutils
, grpc_google_iam_v1
, libcst
, mock
, proto-plus
, pytest-asyncio
}:
buildPythonPackage rec {
pname = "google-cloud-pubsub";
version = "2.2.0";
src = fetchPypi {
inherit pname version;
sha256 = "1rfdbkxbndi00wx9dx733ihp3hmcsk6k23pcjni0ki7m0c4acl5w";
};
propagatedBuildInputs = [ grpc_google_iam_v1 google-api-core libcst proto-plus ];
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
'';
pythonImportsCheck = [ "google.cloud.pubsub" ];
meta = with stdenv.lib; {
description = "Google Cloud Pub/Sub API client library";
homepage = "https://pypi.org/project/google-cloud-pubsub";
license = licenses.asl20;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}
@@ -0,0 +1,37 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, google-api-core
, libcst
, mock
, proto-plus
, pytestCheckHook
, pytest-asyncio
}:
buildPythonPackage rec {
pname = "google-cloud-redis";
version = "2.0.0";
src = fetchPypi {
inherit pname version;
sha256 = "1f67mr473vzv0qgjm4hycfnrjgiqrsv47vqrynwjy9yrca2130y7";
};
propagatedBuildInputs = [ google-api-core libcst proto-plus ];
checkInputs = [ mock pytestCheckHook pytest-asyncio ];
pythonImportsCheck = [
"google.cloud.redis"
"google.cloud.redis_v1"
"google.cloud.redis_v1beta1"
];
meta = with stdenv.lib; {
description = "Google Cloud Memorystore for Redis API client library";
homepage = "https://github.com/googleapis/python-redis";
license = licenses.asl20;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}
@@ -0,0 +1,36 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, google-cloud-core
, google-api-core
, mock
}:
buildPythonPackage rec {
pname = "google-cloud-resource-manager";
version = "0.30.3";
src = fetchPypi {
inherit pname version;
sha256 = "1la643vkf6fm2gapz57cm92xzvmhzgpzv3bb6112yz1cizrvnxrm";
};
propagatedBuildInputs = [ google-api-core google-cloud-core ];
checkInputs = [ mock pytestCheckHook ];
# prevent google directory from shadowing google imports
preCheck = ''
rm -r google
'';
pythonImportsCheck = [ "google.cloud.resource_manager" ];
meta = with stdenv.lib; {
description = "Google Cloud Resource Manager API client library";
homepage = "https://github.com/googleapis/python-resource-manager";
license = licenses.asl20;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}
@@ -1,5 +1,11 @@
{ stdenv, buildPythonPackage, fetchPypi, pytestCheckHook, pythonOlder
, google_api_core, google_cloud_core, mock }:
{ stdenv
, buildPythonPackage
, fetchPypi
, google-api-core
, google-cloud-core
, mock
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "google-cloud-runtimeconfig";
@@ -7,28 +13,27 @@ buildPythonPackage rec {
src = fetchPypi {
inherit pname version;
sha256 = "57143ec3c5ed3e0bee590a98857eec06c68aa2eacbce477403226a0d2e85a8ad";
sha256 = "1bd8hlp0ssi20ds4gknbxai8mih6xiz8b60ab7p0ngpdqp1kw52p";
};
disabled = pythonOlder "3.5";
propagatedBuildInputs = [ google-api-core google-cloud-core ];
checkInputs = [ mock pytestCheckHook ];
propagatedBuildInputs = [ google_api_core google_cloud_core ];
# api_url test broken, fix not yet released
# https://github.com/googleapis/python-resource-manager/pull/31
# Client tests require credentials
disabledTests = [ "build_api_url_w_custom_endpoint" "client_options" ];
disabledTests = [ "client_options" ];
# prevent google directory from shadowing google imports
preCheck = ''
rm -r google
'';
pythonImportsCheck = [ "google.cloud.runtimeconfig" ];
meta = with stdenv.lib; {
description = "Google Cloud RuntimeConfig API client library";
homepage = "https://pypi.org/project/google-cloud-runtimeconfig";
license = licenses.asl20;
maintainers = [ maintainers.costrouc ];
maintainers = with maintainers; [ SuperSandro2000 ];
};
}
@@ -0,0 +1,47 @@
{ lib
, buildPythonPackage
, fetchPypi
, google-api-core
, grpc_google_iam_v1
, libcst
, mock
, proto-plus
, pytestCheckHook
, pytest-asyncio
}:
buildPythonPackage rec {
pname = "google-cloud-secret-manager";
version = "2.1.0";
src = fetchPypi {
inherit pname version;
sha256 = "0c2w8ny3n84faq1mq86f16lzqgqbk1977q2f5qxn5a5ccj8v821g";
};
propagatedBuildInputs = [
google-api-core
grpc_google_iam_v1
libcst
proto-plus
];
checkInputs = [
mock
pytestCheckHook
pytest-asyncio
];
pythonImportsCheck = [
"google.cloud.secretmanager"
"google.cloud.secretmanager_v1"
"google.cloud.secretmanager_v1beta1"
];
meta = with lib; {
description = "Secret Manager API API client library";
homepage = "https://github.com/googleapis/python-secret-manager";
license = licenses.asl20;
maintainers = with maintainers; [ siriobalmelli SuperSandro2000 ];
};
}
@@ -0,0 +1,39 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, grpc_google_iam_v1
, google-api-core
, libcst
, mock
, proto-plus
, pytestCheckHook
, pytest-asyncio
}:
buildPythonPackage rec {
pname = "google-cloud-securitycenter";
version = "1.1.0";
src = fetchPypi {
inherit pname version;
sha256 = "1lgz6qpsfv4b7p5ff4sdpjpaddxpbazdvlcrqr1i0c0qil2lkm2i";
};
propagatedBuildInputs = [ grpc_google_iam_v1 google-api-core libcst proto-plus ];
checkInputs = [ mock pytestCheckHook pytest-asyncio ];
pythonImportsCheck = [
"google.cloud.securitycenter"
"google.cloud.securitycenter_v1"
"google.cloud.securitycenter_v1beta1"
"google.cloud.securitycenter_v1p1beta1"
];
meta = with stdenv.lib; {
description = "Cloud Security Command Center API API client library";
homepage = "https://github.com/googleapis/python-securitycenter";
license = licenses.asl20;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}
@@ -0,0 +1,54 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, grpc_google_iam_v1
, google-cloud-core
, google-cloud-testutils
, libcst
, mock
, proto-plus
, pytestCheckHook
, pytest-asyncio
, sqlparse
}:
buildPythonPackage rec {
pname = "google-cloud-spanner";
version = "2.1.0";
src = fetchPypi {
inherit pname version;
sha256 = "0mkkx6l3cbwfwng12zpisbv6m919fkhdb48xk24ayc19193bi86n";
};
postPatch = ''
substituteInPlace setup.py \
--replace '"proto-plus == 1.11.0"' '"proto-plus"'
'';
propagatedBuildInputs = [ google-cloud-core grpc_google_iam_v1 libcst proto-plus sqlparse ];
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
'';
pythonImportsCheck = [
"google.cloud.spanner_admin_database_v1"
"google.cloud.spanner_admin_instance_v1"
"google.cloud.spanner_dbapi"
"google.cloud.spanner_v1"
];
meta = with stdenv.lib; {
description = "Cloud Spanner API client library";
homepage = "https://github.com/googleapis/python-spanner";
license = licenses.asl20;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}
@@ -0,0 +1,43 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, google-api-core
, libcst
, mock
, proto-plus
, pytestCheckHook
, pytest-asyncio
}:
buildPythonPackage rec {
pname = "google-cloud-speech";
version = "2.0.1";
src = fetchPypi {
inherit pname version;
sha256 = "0ch85h5xrb15fcml5v0f30s0niw02k4v8gi7i8a40161yj882hm7";
};
propagatedBuildInputs = [ libcst google-api-core proto-plus ];
checkInputs = [ mock pytestCheckHook pytest-asyncio ];
pytestFlagsArray = [
# requrire credentials
"--ignore=tests/system/gapic/v1/test_system_speech_v1.py"
"--ignore=tests/system/gapic/v1p1beta1/test_system_speech_v1p1beta1.py"
];
pythonImportsCheck = [
"google.cloud.speech"
"google.cloud.speech_v1"
"google.cloud.speech_v1p1beta1"
];
meta = with stdenv.lib; {
description = "Google Cloud Speech API client library";
homepage = "https://github.com/googleapis/python-speech";
license = licenses.asl20;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}
@@ -0,0 +1,64 @@
{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, google-auth
, google-cloud-iam
, google-cloud-core
, google-cloud-kms
, google-cloud-testutils
, google-resumable-media
, mock
}:
buildPythonPackage rec {
pname = "google-cloud-storage";
version = "1.35.0";
src = fetchPypi {
inherit pname version;
sha256 = "17kal75wmyjpva7g04cb9yg7qbyrgwfn575z4gqijd4gz2r0sp2m";
};
propagatedBuildInputs = [
google-auth
google-cloud-core
google-resumable-media
];
checkInputs = [
google-cloud-iam
google-cloud-kms
google-cloud-testutils
mock
pytestCheckHook
];
# disable tests which require credentials and network access
disabledTests = [
"create"
"download"
"get"
"post"
"test_build_api_url"
];
pytestFlagsArray = [
"--ignore=tests/unit/test_bucket.py"
"--ignore=tests/system/test_system.py"
];
# prevent google directory from shadowing google imports
preCheck = ''
rm -r google
'';
pythonImportsCheck = [ "google.cloud.storage" ];
meta = with lib; {
description = "Google Cloud Storage API client library";
homepage = "https://github.com/googleapis/python-storage";
license = licenses.asl20;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}
@@ -0,0 +1,44 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, google-api-core
, grpc_google_iam_v1
, libcst
, mock
, proto-plus
, pytestCheckHook
, pytest-asyncio
}:
buildPythonPackage rec {
pname = "google-cloud-tasks";
version = "2.1.0";
src = fetchPypi {
inherit pname version;
sha256 = "1jsf7y88lvln9r08pmx673ibmgw397qmir5drrcfvlmgqvszp7qx";
};
propagatedBuildInputs = [ google-api-core grpc_google_iam_v1 libcst proto-plus ];
checkInputs = [ mock pytestCheckHook pytest-asyncio ];
disabledTests = [
# requires credentials
"test_list_queues"
];
pythonImportsCheck = [
"google.cloud.tasks"
"google.cloud.tasks_v2"
"google.cloud.tasks_v2beta2"
"google.cloud.tasks_v2beta3"
];
meta = with stdenv.lib; {
description = "Cloud Tasks API API client library";
homepage = "https://github.com/googleapis/python-tasks";
license = licenses.asl20;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}
@@ -1,4 +1,4 @@
{ stdenv, buildPythonPackage, fetchPypi, google_auth, pytest, six }:
{ stdenv, buildPythonPackage, fetchPypi, google-auth, six }:
buildPythonPackage rec {
pname = "google-cloud-testutils";
@@ -9,15 +9,17 @@ buildPythonPackage rec {
sha256 = "1bn1pz00lxym3vkl6l45b3nydpmfdvmylwggh2lspldrxwx39a0k";
};
propagatedBuildInputs = [ google_auth six ];
propagatedBuildInputs = [ google-auth six ];
# There are no tests
# does not contain tests
doCheck = false;
pythonImportsCheck = [ "test_utils" ];
meta = with stdenv.lib; {
description = "System test utilities for google-cloud-python";
homepage = "https://github.com/googleapis/python-test-utils";
license = licenses.asl20;
maintainers = [ maintainers.costrouc ];
maintainers = with maintainers; [ SuperSandro2000 ];
};
}
@@ -0,0 +1,43 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, google-api-core
, libcst
, mock
, proto-plus
, pytest-asyncio
}:
buildPythonPackage rec {
pname = "google-cloud-texttospeech";
version = "2.2.0";
src = fetchPypi {
inherit pname version;
sha256 = "17igfwh34369gkvsbrm46j1ii61i6268wg2g2dl9c65nf9z3kgfb";
};
propagatedBuildInputs = [ libcst google-api-core proto-plus ];
checkInputs = [ mock pytest-asyncio pytestCheckHook ];
disabledTests = [
# Disable tests that require credentials
"test_list_voices"
"test_synthesize_speech"
];
pythonImportsCheck = [
"google.cloud.texttospeech"
"google.cloud.texttospeech_v1"
"google.cloud.texttospeech_v1beta1"
];
meta = with stdenv.lib; {
description = "Google Cloud Text-to-Speech API client library";
homepage = "https://github.com/googleapis/python-texttospeech";
license = licenses.asl20;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}
@@ -0,0 +1,44 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, google-api-core
, google-cloud-core
, google-cloud-testutils
, mock
, proto-plus
, pytestCheckHook
, pytest-asyncio
}:
buildPythonPackage rec {
pname = "google-cloud-trace";
version = "1.1.0";
src = fetchPypi {
inherit pname version;
sha256 = "1lvcm4w1l7hiqg64kdscch3f3bq19q9ii49xj4lljn2a4xffxl8v";
};
propagatedBuildInputs = [ google-api-core google-cloud-core proto-plus ];
checkInputs = [ google-cloud-testutils mock pytestCheckHook pytest-asyncio ];
disabledTests = [
# require credentials
"test_batch_write_spans"
"test_list_traces"
];
pythonImportsCheck = [
"google.cloud.trace"
"google.cloud.trace_v1"
"google.cloud.trace_v2"
];
meta = with stdenv.lib; {
description = "Cloud Trace API client library";
homepage = "https://github.com/googleapis/python-trace";
license = licenses.asl20;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}
@@ -0,0 +1,46 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, google-api-core
, google-cloud-core
, google-cloud-testutils
, grpcio
, libcst
, mock
, proto-plus
, pytest-asyncio
}:
buildPythonPackage rec {
pname = "google-cloud-translate";
version = "3.0.2";
src = fetchPypi {
inherit pname version;
sha256 = "1s2gvlzfqd2gsrzaz7yl9q8s1k03dlsjahgg95s017vlcn21d0v1";
};
propagatedBuildInputs = [ google-api-core google-cloud-core libcst proto-plus ];
checkInputs = [ google-cloud-testutils mock pytestCheckHook pytest-asyncio ];
preCheck = ''
# prevent shadowing imports
rm -r google
'';
pythonImportsCheck = [
"google.cloud.translate"
"google.cloud.translate_v2"
"google.cloud.translate_v3"
"google.cloud.translate_v3beta1"
];
meta = with stdenv.lib; {
description = "Google Cloud Translation API client library";
homepage = "https://github.com/googleapis/python-translate";
license = licenses.asl20;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}
@@ -0,0 +1,45 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, mock
, google-api-core
, google-cloud-testutils
, proto-plus
, pytestCheckHook
, pytest-asyncio
}:
buildPythonPackage rec {
pname = "google-cloud-videointelligence";
version = "2.0.0";
src = fetchPypi {
inherit pname version;
sha256 = "1yhmizig41ymr2dz0i6ccrwszp0ivyykmq11vqxp82l9ncjima82";
};
propagatedBuildInputs = [ google-api-core proto-plus ];
checkInputs = [ google-cloud-testutils mock pytestCheckHook pytest-asyncio ];
disabledTests = [
# require credentials
"test_annotate_video"
];
pythonImportsCheck = [
"google.cloud.videointelligence"
"google.cloud.videointelligence_v1"
"google.cloud.videointelligence_v1beta2"
"google.cloud.videointelligence_v1p1beta1"
"google.cloud.videointelligence_v1p2beta1"
"google.cloud.videointelligence_v1p3beta1"
];
meta = with stdenv.lib; {
description = "Google Cloud Video Intelligence API client library";
homepage = "https://github.com/googleapis/python-videointelligence";
license = licenses.asl20;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}
@@ -0,0 +1,41 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, google-api-core
, libcst
, mock
, proto-plus
, pytestCheckHook
, pytest-asyncio
}:
buildPythonPackage rec {
pname = "google-cloud-vision";
version = "2.0.0";
src = fetchPypi {
inherit pname version;
sha256 = "0qbwhapmn5ia853c4nfnz1qiksngvr8j0xxjasrykwhxcsd7s1ka";
};
propagatedBuildInputs = [ libcst google-api-core proto-plus];
checkInputs = [ mock pytestCheckHook pytest-asyncio ];
pythonImportsCheck = [
"google.cloud.vision"
"google.cloud.vision_helpers"
"google.cloud.vision_v1"
"google.cloud.vision_v1p1beta1"
"google.cloud.vision_v1p2beta1"
"google.cloud.vision_v1p3beta1"
"google.cloud.vision_v1p4beta1"
];
meta = with stdenv.lib; {
description = "Cloud Vision API API client library";
homepage = "https://github.com/googleapis/python-vision";
license = licenses.asl20;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}
@@ -0,0 +1,36 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, google-api-core
, libcst
, mock
, proto-plus
, pytest-asyncio
}:
buildPythonPackage rec {
pname = "google-cloud-websecurityscanner";
version = "1.0.0";
src = fetchPypi {
inherit pname version;
sha256 = "14sky9bkl00n65ksig3f6psm31pkmkvlcprlk6s9if470j40zrhx";
};
propagatedBuildInputs = [ google-api-core libcst proto-plus ];
checkInputs = [ mock pytest-asyncio pytestCheckHook ];
pythonImportsCheck = [
"google.cloud.websecurityscanner_v1alpha"
"google.cloud.websecurityscanner_v1beta"
];
meta = with stdenv.lib; {
description = "Google Cloud Web Security Scanner API client library";
homepage = "https://github.com/googleapis/python-websecurityscanner";
license = licenses.asl20;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}
@@ -1,31 +1,31 @@
{ lib, buildPythonPackage, isPy3k, fetchFromGitHub, cffi, crc32c, pytestCheckHook }:
{ lib, buildPythonPackage, fetchFromGitHub, cffi, crc32c, pytestCheckHook }:
buildPythonPackage rec {
pname = "google-crc32c";
version = "1.0.0";
disabled = !isPy3k;
version = "1.1.0";
src = fetchFromGitHub {
owner = "googleapis";
repo = "python-crc32c";
rev = "v${version}";
sha256 = "0n3ggsxmk1fhq0kz6p5rcj4gypfb05i26fcn7lsawakgl7fzxqyl";
sha256 = "0vbidg9yrv9k8xvk8rl43lsf4cg3dci4a9k4srwwrchbxivz1gr6";
};
buildInputs = [ crc32c ];
buildInputs = [ crc32c ];
propagatedBuildInputs = [ cffi ];
LDFLAGS = "-L${crc32c}/lib";
CFLAGS = "-I${crc32c}/include";
checkInputs = [ pytestCheckHook crc32c ];
pythonImportsCheck = [ "google_crc32c" ];
meta = with lib; {
homepage = "https://github.com/googleapis/python-crc32c";
description = "Wrapper the google/crc32c hardware-based implementation of the CRC32C hashing algorithm";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ freezeboy ];
maintainers = with maintainers; [ freezeboy SuperSandro2000 ];
};
}
@@ -1,4 +1,4 @@
{ buildPythonPackage, fetchPypi, lib, requests, pytest, pytestcov, mock }:
{ buildPythonPackage, fetchPypi, lib, requests, pytestCheckHook, mock }:
buildPythonPackage rec {
pname = "google-i18n-address";
@@ -11,12 +11,12 @@ buildPythonPackage rec {
propagatedBuildInputs = [ requests ];
checkInputs = [ pytest pytestcov mock ];
checkInputs = [ pytestCheckHook mock ];
meta = with lib; {
description = "Google's i18n address data packaged for Python";
homepage = "https://pypi.org/project/google-i18n-address/";
maintainers = with maintainers; [ ];
maintainers = with maintainers; [ SuperSandro2000 ];
license = licenses.bsd3;
};
}
@@ -1,4 +1,7 @@
{ lib, buildPythonPackage, fetchPypi, pythonOlder
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, attrs
, audio-metadata
, importlib-metadata
@@ -10,7 +13,6 @@
buildPythonPackage rec {
pname = "google-music-proto";
version = "2.10.0";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
@@ -20,7 +22,7 @@ buildPythonPackage rec {
postPatch = ''
sed -i -e "/audio-metadata/c\'audio-metadata'," -e "/marshmallow/c\'marshmallow'," setup.py
substituteInPlace setup.py \
--replace "pendulum>=2.0,<=3.0,!=2.0.5,!=2.1.0" "pendulum>=2.0,<=3.0"
--replace "'attrs>=18.2,<19.4'" "'attrs'"
'';
propagatedBuildInputs = [
@@ -1,30 +1,35 @@
{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder
, audio-metadata, multidict, wrapt
, pytest
{ lib
, buildPythonPackage
, fetchFromGitHub
, audio-metadata
, multidict
, poetry
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "google-music-utils";
version = "2.1.0";
version = "2.5.0";
# Pypi tarball doesn't contain tests
src = fetchFromGitHub {
owner = "thebigmunch";
repo = "google-music-utils";
rev = version;
sha256 = "0fn4zp0gf1wx2x06dbc840qcq21j4p3ajghxp7646w2n6n9gxhh7";
sha256 = "0vwbrgakk23fypjspmscz4gllnb3dksv2njy4j4bm8vyr6fwbi5f";
};
format = "pyproject";
propagatedBuildInputs = [
audio-metadata multidict wrapt
];
checkInputs = [ pytest ];
checkPhase = ''
pytest
postPatch = ''
substituteInPlace pyproject.toml \
--replace 'multidict = "^4.0"' 'multidict = ">4.0"'
'';
disabled = pythonOlder "3.6";
nativeBuildInputs = [ poetry ];
propagatedBuildInputs = [ audio-metadata multidict ];
checkInputs = [ pytestCheckHook ];
meta = with lib; {
homepage = "https://github.com/thebigmunch/google-music-utils";
@@ -1,4 +1,6 @@
{ lib, buildPythonPackage, fetchPypi, pythonOlder
{ lib
, buildPythonPackage
, fetchPypi
, appdirs
, audio-metadata
, google-music-proto
@@ -14,7 +16,7 @@ buildPythonPackage rec {
src = fetchPypi {
inherit pname version;
sha256 = "b79956cc0df86345c74436ae6213b700345403c91d51947288806b174322573b";
sha256 = "0fsp491ifsw0i1r98l8xr41m8d00nw9n5bin8k3laqzq1p65d6dp";
};
postPatch = ''
@@ -35,8 +37,6 @@ buildPythonPackage rec {
# No tests
doCheck = false;
disabled = pythonOlder "3.6";
meta = with lib; {
homepage = "https://github.com/thebigmunch/google-music";
description = "A Google Music API wrapper";
@@ -0,0 +1,46 @@
{ lib
, buildPythonPackage
, fetchPypi
, google-auth
, google-cloud-testutils
, google-crc32c
, mock
, pytestCheckHook
, pytest-asyncio
, requests
}:
buildPythonPackage rec {
pname = "google-resumable-media";
version = "1.2.0";
src = fetchPypi {
inherit pname version;
sha256 = "0hwxdgsqh6933kp4jkv6hwwdcqs7bgjn9j08ga399njv3s9b367f";
};
propagatedBuildInputs = [ google-auth google-crc32c requests ];
checkInputs = [ google-auth google-cloud-testutils mock pytestCheckHook pytest-asyncio ];
preCheck = ''
# prevent shadowing imports
rm -r google
# fixture 'authorized_transport' not found
rm tests/system/requests/test_upload.py
# requires network
rm tests/system/requests/test_download.py
'';
pythonImportsCheck = [
"google._async_resumable_media"
"google.resumable_media"
];
meta = with lib; {
description = "Utilities for Google Media Downloads and Resumable Uploads";
homepage = "https://github.com/GoogleCloudPlatform/google-resumable-media-python";
license = licenses.asl20;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}
@@ -1,44 +0,0 @@
{ stdenv, buildPythonPackage, fetchpatch, fetchPypi, pythonOlder
, pytestCheckHook, cachetools, flask, freezegun, mock, oauth2client
, pyasn1-modules, pytest, pytest-localserver, requests, responses, rsa
, setuptools, six, urllib3 }:
buildPythonPackage rec {
pname = "google-auth";
version = "1.23.0";
src = fetchPypi {
inherit pname version;
sha256 = "5176db85f1e7e837a646cd9cede72c3c404ccf2e3373d9ee14b2db88febad440";
};
disabled = pythonOlder "3.5";
propagatedBuildInputs = [ six pyasn1-modules cachetools rsa setuptools ];
checkInputs = [
flask
freezegun
mock
oauth2client
pytestCheckHook
pytest-localserver
requests
responses
urllib3
];
meta = with stdenv.lib; {
description = "Google Auth Python Library";
longDescription = ''
This library simplifies using Google’s various server-to-server
authentication mechanisms to access Google APIs.
'';
homepage = "https://github.com/googleapis/google-auth-library-python";
changelog =
"https://github.com/googleapis/google-auth-library-python/blob/v${version}/CHANGELOG.md";
# Documentation: https://googleapis.dev/python/google-auth/latest/index.html
license = licenses.asl20;
maintainers = with maintainers; [ ];
};
}
@@ -1,38 +0,0 @@
{ stdenv, buildPythonPackage, fetchPypi, pythonOlder, grpc_google_iam_v1
, google_api_core, google-cloud-access-context-manager, google-cloud-org-policy
, libcst, proto-plus, pytest, pytest-asyncio, pytestCheckHook, mock }:
buildPythonPackage rec {
pname = "google-cloud-asset";
version = "2.2.0";
src = fetchPypi {
inherit pname version;
sha256 = "1cf1b8a102eea8cec65eb07bef51dc15c1136cfc8564ea7fc5a39465b8f20017";
};
disabled = pythonOlder "3.6";
checkInputs = [ mock pytest-asyncio pytestCheckHook ];
disabledTests = [ "asset_service_transport_auth_adc" ];
propagatedBuildInputs = [
grpc_google_iam_v1
google_api_core
google-cloud-access-context-manager
google-cloud-org-policy
libcst
proto-plus
];
# Remove tests intended to be run in VPC
preCheck = ''
rm -rf tests/system
'';
meta = with stdenv.lib; {
description = "Python Client for Google Cloud Asset API";
homepage = "https://github.com/googleapis/python-asset";
license = licenses.asl20;
maintainers = [ maintainers.costrouc ];
};
}
@@ -1,39 +0,0 @@
{ stdenv, buildPythonPackage, fetchPypi, pythonOlder, pytestCheckHook, libcst
, google_api_core, google_cloud_storage, google_cloud_testutils, pandas
, proto-plus, pytest-asyncio, mock }:
buildPythonPackage rec {
pname = "google-cloud-automl";
version = "2.1.0";
src = fetchPypi {
inherit pname version;
sha256 = "520dfe2ee04d28f3088c9c582fa2a534fc272647d5e2e59acc903c0152e61696";
};
disabled = pythonOlder "3.6";
checkInputs = [
google_cloud_storage
google_cloud_testutils
mock
pandas
pytest-asyncio
pytestCheckHook
];
propagatedBuildInputs = [ google_api_core libcst proto-plus ];
# ignore tests which need credentials
disabledTests = [ "test_prediction_client_client_info" ];
preCheck = ''
rm -r google
rm tests/system/gapic/v1beta1/test_system_tables_client_v1.py
'';
meta = with stdenv.lib; {
description = "Cloud AutoML API client library";
homepage = "https://github.com/googleapis/python-automl";
license = licenses.asl20;
maintainers = [ maintainers.costrouc ];
};
}
@@ -1,47 +0,0 @@
{ stdenv, buildPythonPackage, fetchPypi, pytestCheckHook, pythonOlder, freezegun
, google_api_core, google_cloud_core, google_cloud_testutils
, google_resumable_media, grpcio, ipython, mock, pandas, proto-plus, pyarrow }:
buildPythonPackage rec {
pname = "google-cloud-bigquery";
version = "2.6.1";
src = fetchPypi {
inherit pname version;
sha256 = "1f99fd0c0c5bde999e056a1be666e5d5bbf392f62c9e730dfcbaf6e8408d44ef";
};
disabled = pythonOlder "3.6";
checkInputs =
[ freezegun google_cloud_testutils ipython mock pytestCheckHook ];
propagatedBuildInputs = [
google_resumable_media
google_api_core
google_cloud_core
pandas
proto-plus
pyarrow
];
# prevent google directory from shadowing google imports
# test_magics requires modifying sys.path
preCheck = ''
rm -r google
rm tests/unit/test_magics.py
'';
# call_api_applying_custom_retry_on_timeout requires credentials
# to_dataframe_timestamp_out_of_pyarrow_bounds has inconsistent results
disabledTests = [
"call_api_applying_custom_retry_on_timeout"
"to_dataframe_timestamp_out_of_pyarrow_bounds"
];
meta = with stdenv.lib; {
description = "Google BigQuery API client library";
homepage = "https://pypi.org/project/google-cloud-bigquery";
license = licenses.asl20;
maintainers = [ maintainers.costrouc ];
};
}
@@ -1,31 +0,0 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, google_api_core
, pytest
, mock
}:
buildPythonPackage rec {
pname = "google-cloud-bigquery-datatransfer";
version = "2.1.0";
src = fetchPypi {
inherit pname version;
sha256 = "0cca79f6ee312159ec3f3b7fea218c3dd51408d39c429ecbea037982e91cc827";
};
checkInputs = [ pytest mock ];
propagatedBuildInputs = [ google_api_core ];
checkPhase = ''
pytest tests/unit
'';
meta = with stdenv.lib; {
description = "BigQuery Data Transfer API client library";
homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python";
license = licenses.asl20;
maintainers = [ maintainers.costrouc ];
};
}
@@ -1,29 +0,0 @@
{ stdenv, buildPythonPackage, fetchPypi, pythonOlder, google_api_core
, grpc_google_iam_v1, libcst, mock, proto-plus, pytest, pytest-asyncio }:
buildPythonPackage rec {
pname = "google-cloud-container";
version = "2.3.0";
src = fetchPypi {
inherit pname version;
sha256 = "0dcd8084dd55c0439ff065d3fb206e2e5c695d3a25effd774b74f8ce43afc911";
};
disabled = pythonOlder "3.6";
checkInputs = [ mock pytest pytest-asyncio ];
propagatedBuildInputs =
[ google_api_core grpc_google_iam_v1 libcst proto-plus ];
checkPhase = ''
pytest tests/unit
'';
meta = with stdenv.lib; {
description = "Google Container Engine API client library";
homepage = "https://github.com/googleapis/python-container";
license = licenses.asl20;
maintainers = [ maintainers.costrouc ];
};
}
@@ -1,33 +0,0 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, google_api_core
, pytest
, mock
, libcst
, proto-plus
}:
buildPythonPackage rec {
pname = "google-cloud-dataproc";
version = "2.2.0";
src = fetchPypi {
inherit pname version;
sha256 = "81c44ac114c94df8f5b21245e5e7fc4eabce66b25fc432c3696b62b5de143b1f";
};
checkInputs = [ pytest mock ];
propagatedBuildInputs = [ google_api_core libcst proto-plus ];
checkPhase = ''
pytest tests/unit
'';
meta = with stdenv.lib; {
description = "Google Cloud Dataproc API client library";
homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python";
license = licenses.asl20;
maintainers = [ maintainers.costrouc ];
};
}
@@ -1,33 +0,0 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, google_api_core
, google_cloud_core
, pytest
, mock
}:
buildPythonPackage rec {
pname = "google-cloud-datastore";
version = "2.0.1";
src = fetchPypi {
inherit pname version;
sha256 = "0ebf3b0bcb483e066dfe73679e019e2d7b8c1652e26984702cf5e3f020592f6a";
};
checkInputs = [ pytest mock ];
propagatedBuildInputs = [ google_api_core google_cloud_core ];
checkPhase = ''
rm -r google
pytest tests/unit
'';
meta = with stdenv.lib; {
description = "Google Cloud Datastore API client library";
homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python";
license = licenses.asl20;
maintainers = [ maintainers.costrouc ];
};
}
@@ -1,32 +0,0 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, enum34
, google_api_core
, pytest
, mock
}:
buildPythonPackage rec {
pname = "google-cloud-dlp";
version = "2.0.0";
src = fetchPypi {
inherit pname version;
sha256 = "112c8a46979eebd60c3651037e62572fed413977ff2811901aa925c7b7ab9a5a";
};
checkInputs = [ pytest mock ];
propagatedBuildInputs = [ enum34 google_api_core ];
checkPhase = ''
pytest tests/unit
'';
meta = with stdenv.lib; {
description = "Cloud Data Loss Prevention (DLP) API API client library";
homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python";
license = licenses.asl20;
maintainers = [ maintainers.costrouc ];
};
}
@@ -1,33 +0,0 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, google_api_core
, google_cloud_core
, pytest
, mock
}:
buildPythonPackage rec {
pname = "google-cloud-dns";
version = "0.32.1";
src = fetchPypi {
inherit pname version;
sha256 = "7264e58067b55535ee859e124bd3da29337698ef6bb293da667d0316ddbe8606";
};
checkInputs = [ pytest mock ];
propagatedBuildInputs = [ google_api_core google_cloud_core ];
checkPhase = ''
rm -r google
pytest tests/unit
'';
meta = with stdenv.lib; {
description = "Google Cloud DNS API client library";
homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python";
license = licenses.asl20;
maintainers = [ maintainers.costrouc ];
};
}
@@ -1,35 +0,0 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, google_api_core
, google_cloud_core
, pytest
}:
buildPythonPackage rec {
pname = "google-cloud-firestore";
version = "2.0.1";
src = fetchPypi {
inherit pname version;
sha256 = "ae1f58d9174a6fb2c9fd2758c6d4fd237fb4f0decc632b80c217bfbceda38eb6";
};
checkInputs = [ pytest ];
propagatedBuildInputs = [ google_api_core google_cloud_core ];
# tests were not included with release
# See issue https://github.com/googleapis/google-cloud-python/issues/6380
doCheck = false;
checkPhase = ''
pytest tests/unit
'';
meta = with stdenv.lib; {
description = "Google Cloud Firestore API client library";
homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python";
license = licenses.asl20;
maintainers = [ maintainers.costrouc ];
};
}
@@ -1,33 +0,0 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, enum34
, grpc_google_iam_v1
, google_api_core
, pytest
, mock
}:
buildPythonPackage rec {
pname = "google-cloud-iot";
version = "2.0.1";
src = fetchPypi {
inherit pname version;
sha256 = "8af2be9c74697a350d5cc8ead00ae6cb4e85943564f1d782e8060d0d5eb15723";
};
checkInputs = [ pytest mock ];
propagatedBuildInputs = [ enum34 grpc_google_iam_v1 google_api_core ];
checkPhase = ''
pytest tests/unit
'';
meta = with stdenv.lib; {
description = "Cloud IoT API API client library";
homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python";
license = licenses.asl20;
# maintainers = [ maintainers. ];
};
}
@@ -1,32 +0,0 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, enum34
, google_api_core
, pytest
, mock
}:
buildPythonPackage rec {
pname = "google-cloud-language";
version = "2.0.0";
src = fetchPypi {
inherit pname version;
sha256 = "abe7abcd64d25ffdf6d063385869ef8f34a7de421d5676541cd6df63b3c37b88";
};
checkInputs = [ pytest mock ];
propagatedBuildInputs = [ enum34 google_api_core ];
checkPhase = ''
pytest tests/unit
'';
meta = with stdenv.lib; {
description = "Google Cloud Natural Language API client library";
homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python";
license = licenses.asl20;
maintainers = [ maintainers.costrouc ];
};
}
@@ -1,38 +0,0 @@
{ stdenv, buildPythonPackage, fetchPypi, pytestCheckHook, pythonOlder, django
, flask, google_api_core, google_cloud_core, google_cloud_testutils, mock
, webapp2 }:
buildPythonPackage rec {
pname = "google-cloud-logging";
version = "2.0.0";
src = fetchPypi {
inherit pname version;
sha256 = "c8e4869ec22aa7958ff937c1acbd34d7a2a8a446af9a09ce442f24128eee063c";
};
disabled = pythonOlder "3.5";
checkInputs =
[ django flask google_cloud_testutils mock pytestCheckHook webapp2 ];
propagatedBuildInputs = [ google_api_core google_cloud_core ];
# api_url test broken, fix not yet released
# https://github.com/googleapis/python-logging/pull/66
disabledTests =
[ "test_build_api_url_w_custom_endpoint" "test_write_log_entries" ];
# prevent google directory from shadowing google imports
# remove system integration tests
preCheck = ''
rm -r google
rm tests/system/test_system.py
'';
meta = with stdenv.lib; {
description = "Stackdriver Logging API client library";
homepage = "https://github.com/googleapis/python-logging";
license = licenses.asl20;
maintainers = [ maintainers.costrouc ];
};
}
@@ -1,32 +0,0 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, google_api_core
, pandas
, pytest
, mock
}:
buildPythonPackage rec {
pname = "google-cloud-monitoring";
version = "2.0.0";
src = fetchPypi {
inherit pname version;
sha256 = "1debfa046ab9518d46b68712c03d86d0ddb11d1aad428aed62c6465752f2201f";
};
checkInputs = [ pytest mock ];
propagatedBuildInputs = [ google_api_core pandas ];
checkPhase = ''
pytest tests/unit
'';
meta = with stdenv.lib; {
description = "Stackdriver Monitoring API client library";
homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python";
license = licenses.asl20;
maintainers = [ maintainers.costrouc ];
};
}
@@ -1,35 +0,0 @@
{ stdenv, buildPythonPackage, fetchPypi, pythonOlder, pytestCheckHook
, google_api_core, google_cloud_testutils, grpc_google_iam_v1, libcst, mock
, proto-plus, pytest-asyncio }:
buildPythonPackage rec {
pname = "google-cloud-pubsub";
version = "2.2.0";
src = fetchPypi {
inherit pname version;
sha256 = "bc50a60803f5c409a295ec0e31cdd4acc271611ce3f4963a072036bbfa5ccde5";
};
disabled = pythonOlder "3.6";
checkInputs = [ google_cloud_testutils mock pytestCheckHook pytest-asyncio ];
propagatedBuildInputs =
[ grpc_google_iam_v1 google_api_core libcst proto-plus ];
# prevent google directory from shadowing google imports
# Tests in pubsub_v1 attempt to contact pubsub.googleapis.com
preCheck = ''
rm -r google
rm -r tests/unit/pubsub_v1
'';
pythonImportsCheck = [ "google.cloud.pubsub" ];
meta = with stdenv.lib; {
description = "Google Cloud Pub/Sub API client library";
homepage = "https://pypi.org/project/google-cloud-pubsub";
license = licenses.asl20;
maintainers = [ maintainers.costrouc ];
};
}
@@ -1,38 +0,0 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, enum34
, google_api_core
, pytest
, mock
}:
buildPythonPackage rec {
pname = "google-cloud-redis";
version = "2.0.0";
src = fetchPypi {
inherit pname version;
sha256 = "c783118462d9272fb9f519ef43b6ce383e99ad631e922a1f06fbef7148aec7b8";
};
checkInputs = [ pytest mock ];
propagatedBuildInputs = [ enum34 google_api_core ];
# requires old version of google-api-core (override)
preBuild = ''
sed -i "s/'google-api-core\[grpc\] >= 0.1.0, < 0.2.0dev'/'google-api-core'/g" setup.py
sed -i "s/google-api-core\[grpc\]<0.2.0dev,>=0.1.0/google-api-core/g" google_cloud_redis.egg-info/requires.txt
'';
checkPhase = ''
pytest tests/unit
'';
meta = with stdenv.lib; {
description = "Google Cloud Memorystore for Redis API client library";
homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python";
license = licenses.asl20;
maintainers = [ maintainers.costrouc ];
};
}
@@ -1,34 +0,0 @@
{ stdenv, buildPythonPackage, fetchPypi, pytestCheckHook, pythonOlder
, google_cloud_core, google_api_core, mock, pytest }:
buildPythonPackage rec {
pname = "google-cloud-resource-manager";
version = "0.30.3";
src = fetchPypi {
inherit pname version;
sha256 = "3577bbf38f2c7c2f42306b8dfdeffbb0eedf45aaec947fd513d51937f72046d1";
};
disabled = pythonOlder "3.5";
checkInputs = [ mock pytestCheckHook ];
propagatedBuildInputs = [ google_api_core google_cloud_core ];
# api_url test broken, fix not yet released
# https://github.com/googleapis/python-resource-manager/pull/31
disabledTests =
[ "api_url_no_extra_query_param" "api_url_w_custom_endpoint" ];
# prevent google directory from shadowing google imports
preCheck = ''
rm -r google
'';
meta = with stdenv.lib; {
description = "Google Cloud Resource Manager API client library";
homepage = "https://github.com/googleapis/python-resource-manager";
license = licenses.asl20;
maintainers = [ maintainers.costrouc ];
};
}
@@ -1,36 +0,0 @@
{ lib, buildPythonPackage, fetchPypi
, grpc_google_iam_v1, google_api_core, libcst, proto-plus
, pytest, mock
}:
buildPythonPackage rec {
pname = "google-cloud-secret-manager";
version = "2.1.0";
src = fetchPypi {
inherit pname version;
sha256 = "2f08b49164aca8623b2e4ee07352980b3ffca909ce205c03568e203bbc455c30";
};
propagatedBuildInputs = [
google_api_core
grpc_google_iam_v1
libcst
proto-plus
];
checkInputs = [
mock
pytest
];
checkPhase = ''
pytest
'';
meta = with lib; {
description = "Secret Manager API: Stores, manages, and secures access to application secrets";
homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python";
license = licenses.asl20;
maintainers = with maintainers; [ siriobalmelli ];
};
}
@@ -1,33 +0,0 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, enum34
, grpc_google_iam_v1
, google_api_core
, pytest
, mock
}:
buildPythonPackage rec {
pname = "google-cloud-securitycenter";
version = "1.0.0";
src = fetchPypi {
inherit pname version;
sha256 = "45d47a4389f2f19958a9db8e5c2f169c9b9385e74338fef0a4e49160153df7f7";
};
checkInputs = [ pytest mock ];
propagatedBuildInputs = [ enum34 grpc_google_iam_v1 google_api_core ];
checkPhase = ''
pytest tests/unit
'';
meta = with stdenv.lib; {
description = "Cloud Security Command Center API API client library";
homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python";
license = licenses.asl20;
maintainers = [ maintainers.costrouc ];
};
}
@@ -1,33 +0,0 @@
{ stdenv, buildPythonPackage, fetchPypi, pytestCheckHook, pythonOlder
, grpc_google_iam_v1, grpcio-gcp, google_api_core, google_cloud_core
, google_cloud_testutils, mock, pytest }:
buildPythonPackage rec {
pname = "google-cloud-spanner";
version = "2.0.0";
src = fetchPypi {
inherit pname version;
sha256 = "edac9d86ea2d8e87c048423f610cd3e5dbb6f9db7f1f9353ff133014689e97c6";
};
disabled = pythonOlder "3.5";
checkInputs = [ google_cloud_testutils mock pytestCheckHook ];
propagatedBuildInputs =
[ grpcio-gcp grpc_google_iam_v1 google_api_core google_cloud_core ];
# prevent google directory from shadowing google imports
# remove tests that require credentials
preCheck = ''
rm -r google
rm tests/system/test_system.py
'';
meta = with stdenv.lib; {
description = "Cloud Spanner API client library";
homepage = "https://pypi.org/project/google-cloud-spanner";
license = licenses.asl20;
maintainers = [ maintainers.costrouc ];
};
}
@@ -1,26 +0,0 @@
{ stdenv, buildPythonPackage, fetchPypi
, google_api_core, pytest, mock }:
buildPythonPackage rec {
pname = "google-cloud-speech";
version = "2.0.1";
src = fetchPypi {
inherit pname version;
sha256 = "a7428190f4c10440148a273eb4c91480470b34180eec422b7325acdc0b2c0832";
};
propagatedBuildInputs = [ google_api_core ];
checkInputs = [ pytest mock ];
checkPhase = ''
pytest tests/unit
'';
meta = with stdenv.lib; {
description = "Cloud Speech API enables integration of Google speech recognition into applications.";
homepage = "https://github.com/googleapis/google-cloud-python/tree/master/speech";
license = licenses.asl20;
maintainers = with maintainers; [ ];
};
}
@@ -1,48 +0,0 @@
{ lib, buildPythonPackage, fetchPypi, pytestCheckHook, pythonOlder
, google_api_core, google_auth, google-cloud-iam, google_cloud_core
, google_cloud_kms, google_cloud_testutils, google_resumable_media, mock
, requests }:
buildPythonPackage rec {
pname = "google-cloud-storage";
version = "1.33.0";
src = fetchPypi {
inherit pname version;
sha256 = "900ba027bdee6b97f21cd22d1db3d1a6233ede5de2db4754db860438bdad72d2";
};
disabled = pythonOlder "3.5";
propagatedBuildInputs = [
google_api_core
google_auth
google_cloud_core
google_resumable_media
requests
];
checkInputs = [
google-cloud-iam
google_cloud_kms
google_cloud_testutils
mock
pytestCheckHook
];
# disable tests which require credentials
disabledTests = [ "create" "get" "post" "test_build_api_url" ];
# prevent google directory from shadowing google imports
# remove tests which require credentials
preCheck = ''
rm -r google
rm tests/system/test_system.py tests/unit/test_client.py
'';
meta = with lib; {
description = "Google Cloud Storage API client library";
homepage = "https://github.com/googleapis/python-storage";
license = licenses.asl20;
maintainers = with maintainers; [ costrouc ];
};
}
@@ -1,33 +0,0 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, enum34
, grpc_google_iam_v1
, google_api_core
, pytest
, mock
}:
buildPythonPackage rec {
pname = "google-cloud-tasks";
version = "2.0.0";
src = fetchPypi {
inherit pname version;
sha256 = "a9dd004057fc441eee8c18bb2dc3bb20ba7b85f353d66894c61e42aeb8764e76";
};
checkInputs = [ pytest mock ];
propagatedBuildInputs = [ enum34 grpc_google_iam_v1 google_api_core ];
checkPhase = ''
pytest tests/unit
'';
meta = with stdenv.lib; {
description = "Cloud Tasks API API client library";
homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python";
license = licenses.asl20;
maintainers = [ maintainers.costrouc ];
};
}
@@ -1,27 +0,0 @@
{ stdenv, buildPythonPackage, fetchPypi, pytestCheckHook, pythonOlder
, google_api_core, libcst, mock, proto-plus, pytest-asyncio, }:
buildPythonPackage rec {
pname = "google-cloud-texttospeech";
version = "2.2.0";
src = fetchPypi {
inherit pname version;
sha256 = "cbbd397e72b6189668134f3c8e8c303198188334a4e6a5f77cc90c3220772f9e";
};
disabled = pythonOlder "3.5";
checkInputs = [ mock pytest-asyncio pytestCheckHook ];
propagatedBuildInputs = [ google_api_core libcst proto-plus ];
# Disable tests that require credentials
disabledTests = ["test_synthesize_speech" "test_list_voices"];
meta = with stdenv.lib; {
description = "Google Cloud Text-to-Speech API client library";
homepage = "https://github.com/googleapis/python-texttospeech";
license = licenses.asl20;
maintainers = [ maintainers.costrouc ];
};
}
@@ -1,32 +0,0 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, google_api_core
, google_cloud_core
, pytest
, mock
}:
buildPythonPackage rec {
pname = "google-cloud-trace";
version = "1.1.0";
src = fetchPypi {
inherit pname version;
sha256 = "1bd1ee5c274a584929913d9118134e01afe106644cb749ccc3111e1a38a96cd3";
};
checkInputs = [ pytest mock ];
propagatedBuildInputs = [ google_api_core google_cloud_core ];
checkPhase = ''
pytest tests/unit
'';
meta = with stdenv.lib; {
description = "Stackdriver Trace API client library";
homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python";
license = licenses.asl20;
maintainers = [ maintainers.costrouc ];
};
}

Some files were not shown because too many files have changed in this diff Show More