nixpkgs/pkgs/development/python-modules/python-keycloak/default.nix
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00

51 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
deprecation,
fetchFromGitHub,
jwcrypto,
poetry-core,
requests,
requests-toolbelt,
}:
buildPythonPackage rec {
pname = "python-keycloak";
version = "4.0.0";
pyproject = true;
src = fetchFromGitHub {
owner = "marcospereirampj";
repo = "python-keycloak";
tag = "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 = {
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 = lib.licenses.mit;
maintainers = [ ];
};
}