depot/third_party/nixpkgs/pkgs/development/python-modules/requests-oauthlib/default.nix
Default email bb584b27e9 Project import generated by Copybara.
GitOrigin-RevId: 5181d5945eda382ff6a9ca3e072ed6ea9b547fee
2022-04-15 03:41:22 +02:00

43 lines
882 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, mock
, oauthlib
, pytestCheckHook
, requests
, requests-mock
}:
buildPythonPackage rec {
pname = "requests-oauthlib";
version = "1.3.1";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-db6sSkeIHuuU1epdatMe+IhWr/4jMrmq+1LGRSzPDXo=";
};
propagatedBuildInputs = [ oauthlib requests ];
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; {
description = "OAuthlib authentication support for Requests";
homepage = "https://github.com/requests/requests-oauthlib";
license = with licenses; [ isc ];
maintainers = with maintainers; [ prikhi ];
};
}