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
81
pkgs/development/python-modules/dropbox/default.nix
Normal file
81
pkgs/development/python-modules/dropbox/default.nix
Normal file
|
|
@ -0,0 +1,81 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, pythonOlder
|
||||
, fetchFromGitHub
|
||||
, requests
|
||||
, six
|
||||
, stone
|
||||
, mock
|
||||
, pytest-mock
|
||||
, pytestCheckHook
|
||||
, sphinxHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "dropbox";
|
||||
version = "11.31.0";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
outputs = ["out" "doc"];
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "dropbox";
|
||||
repo = "dropbox-sdk-python";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-mbBVivrpXYNuVbXeHRyy07LxPbtYvaL3JleK7QXOxi0=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
requests
|
||||
six
|
||||
stone
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
mock
|
||||
pytest-mock
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "'pytest-runner == 5.2.0'," ""
|
||||
'';
|
||||
|
||||
doCheck = true;
|
||||
|
||||
pythonImportsCheck = [
|
||||
"dropbox"
|
||||
];
|
||||
nativeBuildInputs = [ sphinxHook ];
|
||||
|
||||
# Set SCOPED_USER_DROPBOX_TOKEN environment variable to a valid value.
|
||||
disabledTests = [
|
||||
"test_default_oauth2_urls"
|
||||
"test_bad_auth"
|
||||
"test_multi_auth"
|
||||
"test_refresh"
|
||||
"test_app_auth"
|
||||
"test_downscope"
|
||||
"test_rpc"
|
||||
"test_upload_download"
|
||||
"test_bad_upload_types"
|
||||
"test_clone_when_user_linked"
|
||||
"test_with_path_root_constructor"
|
||||
"test_path_root"
|
||||
"test_path_root_err"
|
||||
"test_versioned_route"
|
||||
"test_team"
|
||||
"test_as_user"
|
||||
"test_as_admin"
|
||||
"test_clone_when_team_linked"
|
||||
];
|
||||
|
||||
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; [ sfrijters ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue