Merge pull request #309942 from kiike/zhf/python311/keycloak
python3Packages.python-keycloak: 2.6.0 -> 4.0.0
This commit is contained in:
commit
7d9adbac81
|
@ -1,41 +1,40 @@
|
||||||
{ lib
|
{
|
||||||
, buildPythonPackage
|
lib,
|
||||||
, fetchFromGitHub
|
buildPythonPackage,
|
||||||
, poetry-core
|
deprecation,
|
||||||
, python-jose
|
fetchFromGitHub,
|
||||||
, pythonOlder
|
jwcrypto,
|
||||||
, requests
|
poetry-core,
|
||||||
, requests-toolbelt
|
pythonOlder,
|
||||||
, urllib3
|
requests,
|
||||||
|
requests-toolbelt,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "python-keycloak";
|
pname = "python-keycloak";
|
||||||
version = "2.6.0";
|
version = "4.0.0";
|
||||||
format = "pyproject";
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.7";
|
disabled = pythonOlder "3.8";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "marcospereirampj";
|
owner = "marcospereirampj";
|
||||||
repo = "python-keycloak";
|
repo = "python-keycloak";
|
||||||
rev = "v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
hash = "sha256-cuj0gJlZDkbJ2HRSMcQvO4nxpjw65CKGEpWCL5sucvg=";
|
hash = "sha256-ZXS29bND4GsJNhTGiUsLo+4FYd8Tubvg/+PJ33tqovY=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
|
# Upstream doesn't set version
|
||||||
substituteInPlace pyproject.toml \
|
substituteInPlace pyproject.toml \
|
||||||
--replace 'version = "0.0.0"' 'version = "${version}"' \
|
--replace-fail 'version = "0.0.0"' 'version = "${version}"'
|
||||||
--replace 'requests-toolbelt = "^0.9.1"' 'requests-toolbelt = "*"'
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
buildInputs = [
|
build-system = [ poetry-core ];
|
||||||
poetry-core
|
|
||||||
];
|
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
dependencies = [
|
||||||
python-jose
|
deprecation
|
||||||
urllib3
|
jwcrypto
|
||||||
requests
|
requests
|
||||||
requests-toolbelt
|
requests-toolbelt
|
||||||
];
|
];
|
||||||
|
@ -43,13 +42,12 @@ buildPythonPackage rec {
|
||||||
# Test fixtures require a running keycloak instance
|
# Test fixtures require a running keycloak instance
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
pythonImportsCheck = [
|
pythonImportsCheck = [ "keycloak" ];
|
||||||
"keycloak"
|
|
||||||
];
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Provides access to the Keycloak API";
|
description = "Provides access to the Keycloak API";
|
||||||
homepage = "https://github.com/marcospereirampj/python-keycloak";
|
homepage = "https://github.com/marcospereirampj/python-keycloak";
|
||||||
|
changelog = "https://github.com/marcospereirampj/python-keycloak/blob/v${version}/CHANGELOG.md";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ ];
|
maintainers = with maintainers; [ ];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user