1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, mock
5, pytest
6, cryptography
7, blinker
8, pyjwt
9}:
10
11buildPythonPackage rec {
12 pname = "oauthlib";
13 version = "unstable-2020-05-08";
14
15 # master supports pyjwt==1.7.1
16 src = fetchFromGitHub {
17 owner = pname;
18 repo = pname;
19 rev = "46647402896db5f0d979eba9594623e889739060";
20 sha256 = "1wrdjdvlfcd74lckcgascnasrffg8sip0z673si4ag5kv4afiz3l";
21 };
22
23 checkInputs = [ mock pytest ];
24 propagatedBuildInputs = [ cryptography blinker pyjwt ];
25
26 checkPhase = ''
27 py.test tests/
28 '';
29
30 meta = with lib; {
31 homepage = "https://github.com/idan/oauthlib";
32 description = "A generic, spec-compliant, thorough implementation of the OAuth request-signing logic";
33 maintainers = with maintainers; [ prikhi ];
34 license = licenses.bsd3;
35 };
36}