Commit edf59763 authored by Dmitry Kalinkin's avatar Dmitry Kalinkin
Browse files

python312Packages.oic: init at 1.7.0

parent b2a979a4
Loading
Loading
Loading
Loading
+68 −0
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  buildPythonPackage,
  fetchFromGitHub,

  # build-system
  setuptools,

  # dependencies
  requests,
  pycryptodomex,
  pydantic-settings,
  pyjwkest,
  mako,
  cryptography,
  defusedxml,

  # tests
  pytestCheckHook,
  freezegun,
  responses,
  testfixtures,
}:

buildPythonPackage rec {
  pname = "oic";
  version = "1.7.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "CZ-NIC";
    repo = "pyoidc";
    tag = version;
    hash = "sha256-7qEK1HWLEGCKu+gDAfbyT1a+sM9fVOfjtkqZ33GWv6U=";
  };

  build-system = [
    setuptools
  ];

  dependencies = [
    requests
    pycryptodomex
    pydantic-settings
    pyjwkest
    mako
    cryptography
    defusedxml
  ];

  nativeCheckInputs = [
    pytestCheckHook
    freezegun
    responses
    testfixtures
  ];

  pythonImportsCheck = [ "oic" ];

  meta = {
    description = "OpenID Connect implementation in Python";
    homepage = "https://github.com/CZ-NIC/pyoidc";
    changelog = "https://github.com/CZ-NIC/pyoidc/releases/tag/${version}";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ veprbl ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -10278,6 +10278,8 @@ self: super: with self; {
  ohme = callPackage ../development/python-modules/ohme { };
  oic = callPackage ../development/python-modules/oic { };
  okonomiyaki = callPackage ../development/python-modules/okonomiyaki { };
  okta = callPackage ../development/python-modules/okta { };