diff options
author | Masum Reza <50095635+JohnRTitor@users.noreply.github.com> | 2024-06-28 23:49:34 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-28 23:49:34 +0530 |
commit | 8808f7d7fc6f4ea3a417fd50076c1c221b216664 (patch) | |
tree | c65408d404126b6602851136d0aa3d7e26e53e45 /pkgs | |
parent | dd66e39ec4c7252fab7e6f8fd57b5ab2a3c7d63c (diff) | |
parent | c4d2c90da0608ec7d0a3fb504570e07b5bd2b5ef (diff) |
Merge pull request #278982 from felbinger/master
python311Packages.mozilla-django-oidc: init at 4.0.1; peering-manager: add oidc support
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/python-modules/mozilla-django-oidc/default.nix | 54 | ||||
-rw-r--r-- | pkgs/top-level/python-packages.nix | 2 |
2 files changed, 56 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/mozilla-django-oidc/default.nix b/pkgs/development/python-modules/mozilla-django-oidc/default.nix new file mode 100644 index 0000000000000..78c24b8b0b785 --- /dev/null +++ b/pkgs/development/python-modules/mozilla-django-oidc/default.nix @@ -0,0 +1,54 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, setuptools +, djangorestframework +, django +, josepy +, requests +, cryptography +}: + +buildPythonPackage rec { + pname = "mozilla-django-oidc"; + version = "4.0.1"; + pyproject = true; + + src = fetchFromGitHub { + owner = "mozilla"; + repo = "mozilla-django-oidc"; + rev = version; + hash = "sha256-72F1aLLIId+YClTrpOz3bL8LSq6ZhZjjtv8V/GJGkqs="; + }; + + nativeBuildInputs = [ + setuptools + ]; + + nativeCheckInputs = [ + djangorestframework + ]; + + checkPhase = '' + runHook preCheck + + PYTHONPATH=.:$PYTHONPATH DJANGO_SETTINGS_MODULE=tests.settings django-admin test + + runHook postCheck + ''; + + dependencies = [ + django + josepy + requests + cryptography + ]; + + meta = { + description = "Django OpenID Connect library"; + homepage = "https://github.com/mozilla/mozilla-django-oidc"; + changelog = "https://github.com/mozilla/mozilla-django-oidc/releases/tag/${src.rev}"; + license = lib.licenses.mpl20; + maintainers = with lib.maintainers; [ felbinger ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 005bb5fc87d7e..df249e3d46f00 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -7809,6 +7809,8 @@ self: super: with self; { mox3 = callPackage ../development/python-modules/mox3 { }; + mozilla-django-oidc = callPackage ../development/python-modules/mozilla-django-oidc { }; + mpd2 = callPackage ../development/python-modules/mpd2 { }; mpegdash = callPackage ../development/python-modules/mpegdash { }; |