2021-01-15 22:18:51 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, mock
|
|
|
|
, oauthlib
|
|
|
|
, pytestCheckHook
|
|
|
|
, requests
|
|
|
|
, requests-mock
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "requests-oauthlib";
|
2021-01-15 22:18:51 +00:00
|
|
|
version = "1.3.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "0smaxs5ixng4z0k6dsgmm6s972ka3p6a2ykdpnl23mqzlw0ic9ml";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ oauthlib requests ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
checkInputs = [
|
|
|
|
mock
|
|
|
|
pytestCheckHook
|
|
|
|
requests-mock
|
|
|
|
];
|
|
|
|
|
|
|
|
# Exclude tests which require network access
|
|
|
|
disabledTests = [
|
|
|
|
"testCanPostBinaryData"
|
|
|
|
"test_content_type_override"
|
|
|
|
"test_url_is_native_str"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "requests_oauthlib" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "OAuthlib authentication support for Requests";
|
|
|
|
homepage = "https://github.com/requests/requests-oauthlib";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = with licenses; [ isc ];
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ prikhi ];
|
|
|
|
};
|
|
|
|
}
|