Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 33 lines 720 B view raw
1{ stdenv 2, buildPythonPackage 3, fetchPypi 4, six 5, requests 6, setuptools 7, pytest 8, mock 9}: 10 11buildPythonPackage rec { 12 pname = "google-resumable-media"; 13 version = "0.5.0"; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "2a8fd188afe1cbfd5998bf20602f76b0336aa892de88fe842a806b9a3ed78d2a"; 18 }; 19 20 checkInputs = [ pytest mock ]; 21 propagatedBuildInputs = [ requests setuptools six ]; 22 23 checkPhase = '' 24 py.test tests/unit 25 ''; 26 27 meta = with stdenv.lib; { 28 description = "Utilities for Google Media Downloads and Resumable Uploads"; 29 homepage = https://github.com/GoogleCloudPlatform/google-resumable-media-python; 30 license = licenses.asl20; 31 maintainers = [ maintainers.costrouc ]; 32 }; 33}