2021-01-14 12:40:54 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, mock
|
|
|
|
, oauthlib
|
|
|
|
, pytestCheckHook
|
|
|
|
, requests
|
|
|
|
, requests-mock
|
|
|
|
}:
|
2017-01-13 15:27:27 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2017-05-27 10:25:35 +01:00
|
|
|
pname = "requests-oauthlib";
|
2021-01-14 12:40:54 +00:00
|
|
|
version = "1.3.0";
|
2017-01-13 15:27:27 +00:00
|
|
|
|
2017-08-24 18:34:20 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-11-11 12:19:00 +00:00
|
|
|
sha256 = "0smaxs5ixng4z0k6dsgmm6s972ka3p6a2ykdpnl23mqzlw0ic9ml";
|
2017-01-13 15:27:27 +00:00
|
|
|
};
|
|
|
|
|
2017-05-07 11:55:45 +01:00
|
|
|
propagatedBuildInputs = [ oauthlib requests ];
|
2017-01-13 15:27:27 +00:00
|
|
|
|
2021-01-14 12:40:54 +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" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-01-13 15:27:27 +00:00
|
|
|
description = "OAuthlib authentication support for Requests";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/requests/requests-oauthlib";
|
2021-01-14 12:40:54 +00:00
|
|
|
license = with licenses; [ isc ];
|
2017-01-13 15:27:27 +00:00
|
|
|
maintainers = with maintainers; [ prikhi ];
|
|
|
|
};
|
|
|
|
}
|