1{ stdenv
2, buildPythonPackage
3, fetchPypi
4, mock
5, pytest
6, cryptography
7, blinker
8, pyjwt
9}:
10
11buildPythonPackage rec {
12 pname = "oauthlib";
13 version = "3.1.0";
14
15 src = fetchPypi {
16 inherit pname version;
17 sha256 = "bee41cc35fcca6e988463cacc3bcb8a96224f470ca547e697b604cc697b2f889";
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}