blob: 9150b1a2403652340e5739a8e8f1d4d0f98a50be (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
{
lib,
buildPythonPackage,
deprecation,
fetchFromGitHub,
jwcrypto,
poetry-core,
pythonOlder,
requests,
requests-toolbelt,
}:
buildPythonPackage rec {
pname = "python-keycloak";
version = "4.0.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "marcospereirampj";
repo = "python-keycloak";
rev = "refs/tags/v${version}";
hash = "sha256-ZXS29bND4GsJNhTGiUsLo+4FYd8Tubvg/+PJ33tqovY=";
};
postPatch = ''
# Upstream doesn't set version
substituteInPlace pyproject.toml \
--replace-fail 'version = "0.0.0"' 'version = "${version}"'
'';
build-system = [ poetry-core ];
dependencies = [
deprecation
jwcrypto
requests
requests-toolbelt
];
# Test fixtures require a running keycloak instance
doCheck = false;
pythonImportsCheck = [ "keycloak" ];
meta = with lib; {
description = "Provides access to the Keycloak API";
homepage = "https://github.com/marcospereirampj/python-keycloak";
changelog = "https://github.com/marcospereirampj/python-keycloak/blob/v${version}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}
|