2024-02-02 10:51:31 +01:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
python3,
|
2024-04-08 23:23:25 +02:00
|
|
|
fetchFromGitHub,
|
2024-02-02 10:51:31 +01:00
|
|
|
cookies-samesite-compat,
|
|
|
|
pyop,
|
2023-09-26 20:56:55 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
python3.pkgs.buildPythonPackage rec {
|
|
|
|
pname = "satosa";
|
|
|
|
version = "8.4.0";
|
|
|
|
pyproject = true;
|
|
|
|
|
2024-04-08 23:23:25 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "IdentityPython";
|
|
|
|
repo = "SATOSA";
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-q7XmZ3EnAFO1OXIhXIF4Vd0H8uaayFIHFZpWiZUsAFA=";
|
2023-09-26 20:56:55 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
chevron
|
|
|
|
click
|
|
|
|
cookies-samesite-compat
|
|
|
|
gunicorn
|
|
|
|
importlib-metadata
|
|
|
|
pycryptodomex
|
|
|
|
pyop
|
|
|
|
pysaml2
|
|
|
|
pyyaml
|
|
|
|
requests
|
|
|
|
werkzeug
|
|
|
|
];
|
|
|
|
|
|
|
|
passthru.optional-dependencies = with python3.pkgs; {
|
2024-02-02 10:51:31 +01:00
|
|
|
ldap = [ ldap3 ];
|
|
|
|
pyop_mongo = [ pyop ];
|
|
|
|
pyop_redis = [ pyop ];
|
2023-09-26 20:56:55 +02:00
|
|
|
};
|
|
|
|
|
2023-09-27 22:33:18 +02:00
|
|
|
passthru.python = python3;
|
|
|
|
|
2023-09-26 20:56:55 +02:00
|
|
|
pythonImportsCheck = [ "satosa" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Protocol proxy (SAML/OIDC)";
|
|
|
|
homepage = "https://pypi.org/project/SATOSA";
|
|
|
|
license = licenses.asl20;
|
2024-04-08 23:23:25 +02:00
|
|
|
maintainers = with maintainers; [ thubrecht ];
|
2023-09-26 20:56:55 +02:00
|
|
|
mainProgram = "satosa";
|
|
|
|
};
|
|
|
|
}
|