summary refs log tree commit diff
path: root/pkgs/development/python-modules/oauthlib/default.nix
blob: 01e6ca29b5d9b0af2919afd8d4d2addd1fdba4e1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{ lib
, buildPythonPackage
, fetchFromGitHub

# propagates
, blinker
, cryptography
, pyjwt

# test
, mock
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "oauthlib";
  version = "3.1.1";
  format = "setuptools";

  # master supports pyjwt==1.7.1
  src = fetchFromGitHub {
    owner = pname;
    repo = pname;
    rev = "v${version}";
    hash = "sha256:1bgxpzh11i0x7h9py3a29cz5z714b3p498b62znnn5ciy0cr80sv";
  };

  propagatedBuildInputs = [
    blinker
    cryptography
    pyjwt
  ];

  checkInputs = [
    mock
    pytestCheckHook
  ];

  meta = with lib; {
    homepage = "https://github.com/idan/oauthlib";
    description = "A generic, spec-compliant, thorough implementation of the OAuth request-signing logic";
    maintainers = with maintainers; [ prikhi ];
    license = licenses.bsd3;
  };
}