summary refs log tree commit diff
path: root/pkgs/development/python-modules/python-keycloak/default.nix
blob: 6425869243ef1541a87fe21d3ea761168c7cc0e1 (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
{ lib
, buildPythonPackage
, fetchFromGitHub
, requests
, python-jose
, httmock
}:

buildPythonPackage rec {
  pname = "python-keycloak";
  version = "0.27.0";

  src = fetchFromGitHub {
    owner = "marcospereirampj";
    repo = "python-keycloak";
    rev = version;
    sha256 = "sha256-XCOfzzUs0K5/peprgpEXY2pX6wYOF7hg9ec1XPEYHCI=";
  };

  propagatedBuildInputs = [
    requests
    python-jose
  ];

  checkInputs = [
    httmock
  ];

  checkPhase = ''
    python -m unittest discover
  '';

  pythonImportsCheck = [ "keycloak" ];

  meta = with lib; {
    description = "Provides access to the Keycloak API";
    homepage = "https://github.com/marcospereirampj/python-keycloak";
    license = licenses.mit;
    maintainers = with maintainers; [ costrouc ];
  };
}