2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-17 19:42:09 +01:00
|
|
|
, buildPythonPackage
|
2020-05-10 19:06:48 +01:00
|
|
|
, fetchFromGitHub
|
2018-10-17 19:42:09 +01:00
|
|
|
, mock
|
2019-02-14 15:55:36 +00:00
|
|
|
, pytest
|
2018-10-17 19:42:09 +01:00
|
|
|
, cryptography
|
|
|
|
, blinker
|
|
|
|
, pyjwt
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "oauthlib";
|
2020-05-10 19:06:48 +01:00
|
|
|
version = "unstable-2020-05-08";
|
2018-10-17 19:42:09 +01:00
|
|
|
|
2020-05-10 19:06:48 +01:00
|
|
|
# master supports pyjwt==1.7.1
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
|
|
|
rev = "46647402896db5f0d979eba9594623e889739060";
|
|
|
|
sha256 = "1wrdjdvlfcd74lckcgascnasrffg8sip0z673si4ag5kv4afiz3l";
|
2018-10-17 19:42:09 +01:00
|
|
|
};
|
|
|
|
|
2019-02-14 15:55:36 +00:00
|
|
|
checkInputs = [ mock pytest ];
|
2018-10-17 19:42:09 +01:00
|
|
|
propagatedBuildInputs = [ cryptography blinker pyjwt ];
|
|
|
|
|
2019-02-14 15:55:36 +00:00
|
|
|
checkPhase = ''
|
|
|
|
py.test tests/
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/idan/oauthlib";
|
2018-10-17 19:42:09 +01: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 19:42:09 +01:00
|
|
|
};
|
|
|
|
}
|