2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-17 19:42:09 +01:00
|
|
|
, blinker
|
2022-02-28 09:14:37 +00:00
|
|
|
, buildPythonPackage
|
2021-12-25 20:27:05 +00:00
|
|
|
, cryptography
|
2022-02-28 09:14:37 +00:00
|
|
|
, fetchFromGitHub
|
2021-12-25 20:27:05 +00:00
|
|
|
, mock
|
2022-02-28 09:14:37 +00:00
|
|
|
, pyjwt
|
2021-12-25 20:27:05 +00:00
|
|
|
, pytestCheckHook
|
2022-02-28 09:14:37 +00:00
|
|
|
, pythonOlder
|
2018-10-17 19:42:09 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "oauthlib";
|
2022-02-28 09:14:37 +00:00
|
|
|
version = "3.2.0";
|
2021-12-25 20:27:05 +00:00
|
|
|
format = "setuptools";
|
2018-10-17 19:42:09 +01:00
|
|
|
|
2022-02-28 09:14:37 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
2020-05-10 19:06:48 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
2021-12-25 20:27:05 +00:00
|
|
|
rev = "v${version}";
|
2022-02-28 09:14:37 +00:00
|
|
|
hash = "sha256-41JFURG8G8BjlAlNu2+lbj84XR/trAk1U5OPYxPq+5M=";
|
2018-10-17 19:42:09 +01:00
|
|
|
};
|
|
|
|
|
2021-12-25 20:27:05 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
blinker
|
|
|
|
cryptography
|
|
|
|
pyjwt
|
|
|
|
];
|
2018-10-17 19:42:09 +01:00
|
|
|
|
2021-12-25 20:27:05 +00:00
|
|
|
checkInputs = [
|
|
|
|
mock
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2019-02-14 15:55:36 +00:00
|
|
|
|
2022-02-28 09:14:37 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"oauthlib"
|
|
|
|
];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2022-02-28 09:14:37 +00:00
|
|
|
description = "Generic, spec-compliant, thorough implementation of the OAuth request-signing logic";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/idan/oauthlib";
|
2019-02-14 15:55:36 +00:00
|
|
|
license = licenses.bsd3;
|
2022-02-28 09:14:37 +00:00
|
|
|
maintainers = with maintainers; [ prikhi ];
|
2018-10-17 19:42:09 +01:00
|
|
|
};
|
|
|
|
}
|