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