infrastructure/machines/compute01/satosa/package/oic.nix

44 lines
816 B
Nix
Raw Permalink Normal View History

{
lib,
python3,
fetchPypi,
pydantic-settings,
2023-09-26 20:56:55 +02:00
}:
python3.pkgs.buildPythonPackage rec {
pname = "oic";
version = "1.6.1";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-OFofZLtZUZ3x4jhAUwkhv0FnQCQPUF6m0WHjMdPTn60=";
};
nativeBuildInputs = [
python3.pkgs.setuptools
python3.pkgs.wheel
];
propagatedBuildInputs = with python3.pkgs; [
cryptography
defusedxml
mako
pycryptodomex
pydantic-settings
pyjwkest
requests
typing-extensions
];
pythonImportsCheck = [ "oic" ];
meta = with lib; {
description = "Python implementation of OAuth2 and OpenID Connect";
homepage = "https://pypi.org/project/oic/";
license = licenses.asl20;
maintainers = with maintainers; [ ];
mainProgram = "oic";
};
}