Merge pull request #151498 from costrouc/python-keycloak

pythonPackages.python-keycloak: init at 0.26.1
This commit is contained in:
Ivv 2022-01-24 21:28:18 +01:00 committed by GitHub
commit 6ae2dbc902
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 43 additions and 0 deletions

View file

@ -0,0 +1,41 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, requests
, python-jose
, httmock
}:
buildPythonPackage rec {
pname = "python-keycloak";
version = "0.26.1";
src = fetchFromGitHub {
owner = "marcospereirampj";
repo = "python-keycloak";
rev = version;
sha256 = "sha256-YWDj/dLN72XMxDXpSPQvkxHF5xJ15xWJjw3vtfmxlwo=";
};
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 ];
};
}

View file

@ -6118,6 +6118,8 @@ in {
python-kasa = callPackage ../development/python-modules/python-kasa { };
python-keycloak = callPackage ../development/python-modules/python-keycloak { };
python-keystoneclient = callPackage ../development/python-modules/python-keystoneclient { };
python-lsp-black = callPackage ../development/python-modules/python-lsp-black { };