2022-01-25 03:21:06 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, requests
|
|
|
|
, python-jose
|
|
|
|
, httmock
|
2022-09-09 14:08:57 +00:00
|
|
|
, unittestCheckHook
|
2022-01-25 03:21:06 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-keycloak";
|
2022-02-20 05:27:41 +00:00
|
|
|
version = "0.27.0";
|
2022-01-25 03:21:06 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "marcospereirampj";
|
|
|
|
repo = "python-keycloak";
|
|
|
|
rev = version;
|
2022-02-20 05:27:41 +00:00
|
|
|
sha256 = "sha256-XCOfzzUs0K5/peprgpEXY2pX6wYOF7hg9ec1XPEYHCI=";
|
2022-01-25 03:21:06 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
python-jose
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
2022-09-09 14:08:57 +00:00
|
|
|
unittestCheckHook
|
2022-01-25 03:21:06 +00:00
|
|
|
httmock
|
|
|
|
];
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|