Merge pull request #197892 from phaer/update-python-keycloak

python310Packages.python-keycloak: 0.27.0 -> 2.6.0
This commit is contained in:
Fabian Affolter 2022-10-28 22:04:14 +02:00 committed by GitHub
commit 407affe58a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,34 +1,50 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, requests
, poetry-core
, python-jose
, httmock
, unittestCheckHook
, pythonOlder
, requests
, requests-toolbelt
, urllib3
}:
buildPythonPackage rec {
pname = "python-keycloak";
version = "0.27.0";
version = "2.6.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "marcospereirampj";
repo = "python-keycloak";
rev = version;
sha256 = "sha256-XCOfzzUs0K5/peprgpEXY2pX6wYOF7hg9ec1XPEYHCI=";
rev = "v${version}";
hash = "sha256-cuj0gJlZDkbJ2HRSMcQvO4nxpjw65CKGEpWCL5sucvg=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace 'version = "0.0.0"' 'version = "${version}"'
'';
buildInputs = [
poetry-core
];
propagatedBuildInputs = [
requests
python-jose
urllib3
requests
requests-toolbelt
];
checkInputs = [
unittestCheckHook
httmock
];
# Test fixtures require a running keycloak instance
doTest = false;
pythonImportsCheck = [ "keycloak" ];
pythonImportsCheck = [
"keycloak"
];
meta = with lib; {
description = "Provides access to the Keycloak API";