nixos-config/pkgs/software-heritage/swh-auth.nix

43 lines
796 B
Nix
Raw Normal View History

2022-08-10 10:32:35 +00:00
{ stdenv, lib, python3Packages, swh-core, ... }:
with python3Packages;
2023-05-09 08:03:56 +00:00
2022-08-10 10:32:35 +00:00
buildPythonPackage rec {
pname = "swh-auth";
2025-03-25 01:43:37 +00:00
version = "0.10.0";
pyproject = true;
2022-08-10 10:32:35 +00:00
src = fetchPypi {
inherit version;
2025-03-25 01:43:37 +00:00
pname = "swh_auth";
hash = "sha256-J/5oFm0QSPNeEDKIYHEzSXWA/6uSOj9eu3LXYUTZjC0=";
2022-08-10 10:32:35 +00:00
};
# Tests require network access.
doCheck = false;
propagatedBuildInputs = [
click
pyyaml
2025-03-25 01:43:37 +00:00
python-keycloak
# Requirements for Django
django
djangorestframework
sentry-sdk_2
# Requirements for Starlette
starlette
httpx
aiocache
2022-08-10 10:32:35 +00:00
swh-core
];
meta = with lib; {
homepage = "https://forge.softwareheritage.org/source/swh-auth/";
description = "Authentication utilities for Software Heritage";
license = licenses.gpl3Only;
};
}