nix/pkgs/flask-multipass/default.nix
Jeltz a0fe0fdd34
Relax hatch version requirement in flask-multipass
Signed-off-by: Jeltz <jeltz@federez.net>
2025-04-05 21:19:33 +02:00

62 lines
1.1 KiB
Nix

{
lib,
fetchFromGitHub,
buildPythonPackage,
hatchling,
flask,
blinker,
authlib,
requests,
flask-wtf,
python-ldap,
python3-saml,
sqlalchemy,
}:
buildPythonPackage rec {
pname = "flask-multipass";
version = "0.6";
pyproject = true;
src = fetchFromGitHub {
owner = "indico";
repo = "flask-multipass";
rev = "refs/tags/v${version}";
hash = "sha256-1SfyCpa1j7a1emhruVLBtXwDr6BisnvUnTA1ioQmGzQ=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "hatchling==1.25.0" "hatchling"
'';
build-system = [ hatchling ];
dependencies = [
flask
blinker
];
optional-dependencies = {
authlib = [
authlib
requests
];
ldap = [
flask-wtf
python-ldap
];
saml = [ python3-saml ];
sqlalchemy = [
sqlalchemy
flask-wtf
];
};
meta = {
description = "A pluggable solution for multi-backend authentication with Flask";
homepage = "https://github.com/indico/flask-multipass";
changelog = "https://github.com/indico/flask-multipass/blob/${version}/CHANGES.rst";
license = lib.licenses.bsd3;
};
}