1{ stdenv
2, buildPythonPackage
3, fetchPypi
4, mock
5, pytest
6, cryptography
7, blinker
8, pyjwt
9}:
10
11buildPythonPackage rec {
12 version = "3.0.1";
13 pname = "oauthlib";
14
15 src = fetchPypi {
16 inherit pname version;
17 sha256 = "0ce32c5d989a1827e3f1148f98b9085ed2370fc939bf524c9c851d8714797298";
18 };
19
20 checkInputs = [ mock pytest ];
21 propagatedBuildInputs = [ cryptography blinker pyjwt ];
22
23 checkPhase = ''
24 py.test tests/
25 '';
26
27 meta = with stdenv.lib; {
28 homepage = https://github.com/idan/oauthlib;
29 description = "A generic, spec-compliant, thorough implementation of the OAuth request-signing logic";
30 maintainers = with maintainers; [ prikhi ];
31 license = licenses.bsd3;
32 };
33}