uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
|
|
@ -0,0 +1,80 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pytestCheckHook
|
||||
, google-auth
|
||||
, google-cloud-iam
|
||||
, google-cloud-core
|
||||
, google-cloud-kms
|
||||
, google-cloud-testutils
|
||||
, google-resumable-media
|
||||
, mock
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "google-cloud-storage";
|
||||
version = "2.3.0";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-9Muw3l4XIo6cCc3Il9geqnDiw5b1hRP3neDoJFhMj1s=";
|
||||
};
|
||||
|
||||
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"
|
||||
"upload"
|
||||
"test_build_api_url"
|
||||
"test_ctor_mtls"
|
||||
"test_hmac_key_crud"
|
||||
"test_list_buckets"
|
||||
"test_open"
|
||||
"test_anonymous_client_access_to_public_bucket"
|
||||
];
|
||||
|
||||
disabledTestPaths = [
|
||||
"tests/unit/test_bucket.py"
|
||||
"tests/system/test_blob.py"
|
||||
"tests/system/test_bucket.py"
|
||||
"tests/system/test_fileio.py"
|
||||
"tests/system/test_kms_integration.py"
|
||||
];
|
||||
|
||||
preCheck = ''
|
||||
# prevent google directory from shadowing google imports
|
||||
rm -r google
|
||||
|
||||
# requires docker and network
|
||||
rm tests/conformance/test_conformance.py
|
||||
'';
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue