blob: 46d63b3a8c2744e5089aa096054cae9d155c40b7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
{
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 ];
};
}
|