linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / python-modules / google-resumable-media / default.nix
blob531dc1a286034645426636912a1e004d05a18976
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , google-auth
5 , google-cloud-testutils
6 , google-crc32c
7 , mock
8 , pytestCheckHook
9 , pytest-asyncio
10 , requests
13 buildPythonPackage rec {
14   pname = "google-resumable-media";
15   version = "1.2.0";
17   src = fetchPypi {
18     inherit pname version;
19     sha256 = "0hwxdgsqh6933kp4jkv6hwwdcqs7bgjn9j08ga399njv3s9b367f";
20   };
22   propagatedBuildInputs = [ google-auth google-crc32c requests ];
24   checkInputs = [ google-auth google-cloud-testutils mock pytestCheckHook pytest-asyncio ];
26   preCheck = ''
27     # prevent shadowing imports
28     rm -r google
29     # fixture 'authorized_transport' not found
30     rm tests/system/requests/test_upload.py
31     # requires network
32     rm tests/system/requests/test_download.py
33   '';
35   pythonImportsCheck = [
36     "google._async_resumable_media"
37     "google.resumable_media"
38   ];
40   meta = with lib; {
41     description = "Utilities for Google Media Downloads and Resumable Uploads";
42     homepage = "https://github.com/GoogleCloudPlatform/google-resumable-media-python";
43     license = licenses.asl20;
44     maintainers = with maintainers; [ SuperSandro2000 ];
45   };