My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nomicon/pkgs/development/python-modules/dropbox/default.nix

53 lines
990 B

{ lib
, buildPythonPackage
, fetchFromGitHub
, requests
, urllib3
, mock
, setuptools
, stone
, pythonOlder
}:
buildPythonPackage rec {
pname = "dropbox";
version = "11.30.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "dropbox";
repo = "dropbox-sdk-python";
rev = "v${version}";
sha256 = "sha256-pq/LkyOCS0PnujfN9aIx42aeZ8tw4XvRQ4Vid/nXgWE=";
};
propagatedBuildInputs = [
requests
urllib3
mock
setuptools
stone
];
postPatch = ''
substituteInPlace setup.py \
--replace "'pytest-runner == 5.2.0'," ""
'';
# Set DROPBOX_TOKEN environment variable to a valid token.
doCheck = false;
pythonImportsCheck = [
"dropbox"
];
meta = with lib; {
description = "Python library for Dropbox's HTTP-based Core and Datastore APIs";
homepage = "https://github.com/dropbox/dropbox-sdk-python";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}