792b51d22f
GitOrigin-RevId: d5f237872975e6fb6f76eef1368b5634ffcd266f
41 lines
771 B
Nix
41 lines
771 B
Nix
{ 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 ];
|
|
};
|
|
}
|