lol

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

python310Packages.python-keycloak: 0.27.0 -> 2.6.0

authored by

Fabian Affolter and committed by
GitHub
407affe5 2b544f67

+28 -12
+28 -12
pkgs/development/python-modules/python-keycloak/default.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 3 , fetchFromGitHub 4 - , requests 4 + , poetry-core 5 5 , python-jose 6 - , httmock 7 - , unittestCheckHook 6 + , pythonOlder 7 + , requests 8 + , requests-toolbelt 9 + , urllib3 8 10 }: 9 11 10 12 buildPythonPackage rec { 11 13 pname = "python-keycloak"; 12 - version = "0.27.0"; 14 + version = "2.6.0"; 15 + format = "pyproject"; 16 + 17 + disabled = pythonOlder "3.7"; 13 18 14 19 src = fetchFromGitHub { 15 20 owner = "marcospereirampj"; 16 21 repo = "python-keycloak"; 17 - rev = version; 18 - sha256 = "sha256-XCOfzzUs0K5/peprgpEXY2pX6wYOF7hg9ec1XPEYHCI="; 22 + rev = "v${version}"; 23 + hash = "sha256-cuj0gJlZDkbJ2HRSMcQvO4nxpjw65CKGEpWCL5sucvg="; 19 24 }; 20 25 26 + postPatch = '' 27 + substituteInPlace pyproject.toml \ 28 + --replace 'version = "0.0.0"' 'version = "${version}"' 29 + ''; 30 + 31 + buildInputs = [ 32 + poetry-core 33 + ]; 34 + 21 35 propagatedBuildInputs = [ 36 + python-jose 37 + urllib3 22 38 requests 23 - python-jose 39 + requests-toolbelt 24 40 ]; 25 41 26 - checkInputs = [ 27 - unittestCheckHook 28 - httmock 29 - ]; 42 + # Test fixtures require a running keycloak instance 43 + doTest = false; 30 44 31 - pythonImportsCheck = [ "keycloak" ]; 45 + pythonImportsCheck = [ 46 + "keycloak" 47 + ]; 32 48 33 49 meta = with lib; { 34 50 description = "Provides access to the Keycloak API";