Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 29 lines 815 B view raw
1{ lib, buildPythonPackage, fetchPypi 2, pytestrunner, requests, urllib3, mock, setuptools, stone }: 3 4buildPythonPackage rec { 5 pname = "dropbox"; 6 version = "11.4.1"; 7 8 src = fetchPypi { 9 inherit pname version; 10 sha256 = "7ba43384029424779a4b3ec8d5832362c5c0f37cd644be2fb87e2b30a569849e"; 11 }; 12 13 postPatch = '' 14 substituteInPlace setup.py \ 15 --replace "pytest-runner == 5.2.0" "pytest-runner" 16 ''; 17 18 # Set DROPBOX_TOKEN environment variable to a valid token. 19 doCheck = false; 20 21 nativeBuildInputs = [ pytestrunner ]; 22 propagatedBuildInputs = [ requests urllib3 mock setuptools stone ]; 23 24 meta = with lib; { 25 description = "A Python library for Dropbox's HTTP-based Core and Datastore APIs"; 26 homepage = "https://www.dropbox.com/developers/core/docs"; 27 license = licenses.mit; 28 }; 29}