2018-10-17 19:42:09 +01:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
2019-02-14 15:55:36 +00:00
|
|
|
, fetchPypi
|
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 {
|
2019-10-24 07:47:40 +01:00
|
|
|
version = "3.1.0";
|
2018-10-17 19:42:09 +01:00
|
|
|
pname = "oauthlib";
|
|
|
|
|
2019-02-14 15:55:36 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-10-24 07:47:40 +01:00
|
|
|
sha256 = "bee41cc35fcca6e988463cacc3bcb8a96224f470ca547e697b604cc697b2f889";
|
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/
|
|
|
|
'';
|
|
|
|
|
2018-10-17 19:42:09 +01:00
|
|
|
meta = with stdenv.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
|
|
|
};
|
|
|
|
}
|