about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/stups-tokens/default.nix
blob: 62dec6f348e89c8c29a0b7928bcc477674debb6c (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
{ lib
, fetchFromGitHub
, buildPythonPackage
, requests
, mock
, pytest
, pytest-cov
, isPy3k
}:

buildPythonPackage rec {
  pname = "stups-tokens";
  version = "1.1.19";
  disabled = !isPy3k;

  src = fetchFromGitHub {
    owner = "zalando-stups";
    repo = "python-tokens";
    rev = version;
    sha256 = "09z3l3xzdlwpivbi141gk1k0zd9m75mjwbdy81zc386rr9k8s0im";
  };

  propagatedBuildInputs = [
    requests
  ];

  checkInputs = [
    mock
    pytest
    pytest-cov
  ];

  meta = with lib; {
    description = "A Python library that keeps OAuth 2.0 service access tokens in memory for your usage.";
    homepage = "https://github.com/zalando-stups/python-tokens";
    license = licenses.asl20;
    maintainers = [ maintainers.mschuwalow ];
  };
}