f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
51 lines
1 KiB
Nix
51 lines
1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
mock,
|
|
oauthlib,
|
|
pytestCheckHook,
|
|
requests,
|
|
requests-mock,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "requests-oauthlib";
|
|
version = "2.0.0";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-s9/669iE2M13hJQ2lgOp57WNKREb9rQb3C3NhyA69Ok=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
oauthlib
|
|
requests
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
mock
|
|
pytestCheckHook
|
|
requests-mock
|
|
];
|
|
|
|
# Exclude tests which require network access
|
|
disabledTests = [
|
|
"testCanPostBinaryData"
|
|
"test_content_type_override"
|
|
"test_url_is_native_str"
|
|
];
|
|
|
|
# Requires selenium and chrome
|
|
disabledTestPaths = [ "tests/examples/test_native_spa_pkce_auth0.py" ];
|
|
|
|
pythonImportsCheck = [ "requests_oauthlib" ];
|
|
|
|
meta = with lib; {
|
|
description = "OAuthlib authentication support for Requests";
|
|
homepage = "https://github.com/requests/requests-oauthlib";
|
|
license = with licenses; [ isc ];
|
|
maintainers = with maintainers; [ prikhi ];
|
|
};
|
|
}
|