2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-17 18:42:09 +00:00
|
|
|
, buildPythonPackage
|
2020-05-10 18:06:48 +00:00
|
|
|
, fetchFromGitHub
|
2021-12-25 20:27:05 +00:00
|
|
|
|
|
|
|
# propagates
|
2018-10-17 18:42:09 +00:00
|
|
|
, blinker
|
2021-12-25 20:27:05 +00:00
|
|
|
, cryptography
|
2018-10-17 18:42:09 +00:00
|
|
|
, pyjwt
|
2021-12-25 20:27:05 +00:00
|
|
|
|
|
|
|
# test
|
|
|
|
, mock
|
|
|
|
, pytestCheckHook
|
2018-10-17 18:42:09 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "oauthlib";
|
2021-12-25 20:27:05 +00:00
|
|
|
version = "3.1.1";
|
|
|
|
format = "setuptools";
|
2018-10-17 18:42:09 +00:00
|
|
|
|
2020-05-10 18:06:48 +00:00
|
|
|
# master supports pyjwt==1.7.1
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
2021-12-25 20:27:05 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256:1bgxpzh11i0x7h9py3a29cz5z714b3p498b62znnn5ciy0cr80sv";
|
2018-10-17 18:42:09 +00:00
|
|
|
};
|
|
|
|
|
2021-12-25 20:27:05 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
blinker
|
|
|
|
cryptography
|
|
|
|
pyjwt
|
|
|
|
];
|
2018-10-17 18:42:09 +00:00
|
|
|
|
2021-12-25 20:27:05 +00:00
|
|
|
checkInputs = [
|
|
|
|
mock
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2019-02-14 15:55:36 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/idan/oauthlib";
|
2018-10-17 18:42:09 +00:00
|
|
|
description = "A generic, spec-compliant, thorough implementation of the OAuth request-signing logic";
|
|
|
|
maintainers = with maintainers; [ prikhi ];
|
2019-02-14 15:55:36 +00:00
|
|
|
license = licenses.bsd3;
|
2018-10-17 18:42:09 +00:00
|
|
|
};
|
|
|
|
}
|