From 062a4813765edaac6c9526f17a0b97181a794d4c Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Wed, 10 Aug 2022 18:32:35 +0800 Subject: [PATCH] swh-auth: init at 0.6.6 --- pkgs/software-heritage/swh-auth.nix | 33 +++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 pkgs/software-heritage/swh-auth.nix diff --git a/pkgs/software-heritage/swh-auth.nix b/pkgs/software-heritage/swh-auth.nix new file mode 100644 index 00000000..aea55600 --- /dev/null +++ b/pkgs/software-heritage/swh-auth.nix @@ -0,0 +1,33 @@ +{ stdenv, lib, python3Packages, swh-core, ... }: + +with python3Packages; +buildPythonPackage rec { + pname = "swh-auth"; + version = "0.6.6"; + + src = fetchPypi { + inherit version; + pname = "swh.auth"; + sha256 = "sha256-TWLrZC4Iv0HTCtGjraPZRpGLiZFxTXZw6trWzC0GkHw="; + }; + + # Tests require network access. + doCheck = false; + + propagatedBuildInputs = [ + django + djangorestframework + sentry-sdk + click + pyyaml + python-keycloak + + swh-core + ]; + + meta = with lib; { + homepage = "https://forge.softwareheritage.org/source/swh-auth/"; + description = "Authentication utilities for Software Heritage"; + license = licenses.gpl3Only; + }; +}