fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
48 lines
931 B
Nix
48 lines
931 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
mock,
|
|
oauthlib,
|
|
pytestCheckHook,
|
|
requests,
|
|
requests-mock,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "requests-oauthlib";
|
|
version = "1.3.1";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-db6sSkeIHuuU1epdatMe+IhWr/4jMrmq+1LGRSzPDXo=";
|
|
};
|
|
|
|
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"
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|