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";
|
2023-03-03 01:12:50 +00:00
|
|
|
version = "0.7.1";
|
2022-08-10 10:32:35 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit version;
|
|
|
|
pname = "swh.auth";
|
2023-03-03 01:12:50 +00:00
|
|
|
sha256 = "sha256-tmHyDSUDIWLNRTgPquyYaeIg2wZdYMJWpK9Gy8h1B6k=";
|
2022-08-10 10:32:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# Tests require network access.
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
django
|
|
|
|
djangorestframework
|
|
|
|
sentry-sdk
|
|
|
|
click
|
|
|
|
pyyaml
|
2023-05-09 08:03:56 +00:00
|
|
|
(python-keycloak.overrideAttrs (final: prev: rec {
|
|
|
|
version = "2.16.1";
|
|
|
|
src = pkgs.fetchPypi {
|
|
|
|
inherit version;
|
|
|
|
pname = "python_keycloak";
|
|
|
|
hash = "sha256-LyJwC274wWcoSoLCNzb2/ryQW9CrhZgdyhIXGt82Z68=";
|
|
|
|
};
|
|
|
|
propagatedBuildInputs = prev.propagatedBuildInputs ++ [ setuptools deprecation ];
|
|
|
|
}))
|
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;
|
|
|
|
};
|
|
|
|
}
|