Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / requests-oauthlib / default.nix
blob225bf1ecbbdfccbae2691d79f9e262f28ac01af0
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , mock
5 , oauthlib
6 , pytestCheckHook
7 , requests
8 , requests-mock
9 }:
11 buildPythonPackage rec {
12   pname = "requests-oauthlib";
13   version = "1.3.1";
15   src = fetchPypi {
16     inherit pname version;
17     hash = "sha256-db6sSkeIHuuU1epdatMe+IhWr/4jMrmq+1LGRSzPDXo=";
18   };
20   propagatedBuildInputs = [ oauthlib requests ];
22   nativeCheckInputs = [
23     mock
24     pytestCheckHook
25     requests-mock
26   ];
28   # Exclude tests which require network access
29   disabledTests = [
30     "testCanPostBinaryData"
31     "test_content_type_override"
32     "test_url_is_native_str"
33   ];
35   pythonImportsCheck = [ "requests_oauthlib" ];
37   meta = with lib; {
38     description = "OAuthlib authentication support for Requests";
39     homepage = "https://github.com/requests/requests-oauthlib";
40     license = with licenses; [ isc ];
41     maintainers = with maintainers; [ prikhi ];
42   };