Files
nixpkgs/pkgs/development/python-modules/joserfc/default.nix
T
Martin Weinelt 4b557cdf3f python3Packages.joserfc: 1.1.0 -> 1.2.2
https://github.com/authlib/joserfc/blob/1.2.2/docs/changelog.rst

This commit was automatically generated using update-python-libraries.
2025-08-09 19:00:10 +02:00

49 lines
970 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
# dependencies
cryptography,
pycryptodome,
# tests
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "joserfc";
version = "1.2.2";
pyproject = true;
src = fetchFromGitHub {
owner = "authlib";
repo = "joserfc";
tag = version;
hash = "sha256-GS1UvhOdeuyGaF/jS0zgdYkRxz6M8w4lFXcbtIPqQcY=";
};
build-system = [ setuptools ];
dependencies = [ cryptography ];
optional-dependencies = {
drafts = [ pycryptodome ];
};
nativeCheckInputs = [ pytestCheckHook ] ++ lib.flatten (lib.attrValues optional-dependencies);
pythonImportsCheck = [ "joserfc" ];
meta = with lib; {
changelog = "https://github.com/authlib/joserfc/blob/${src.tag}/docs/changelog.rst";
description = "Implementations of JOSE RFCs in Python";
homepage = "https://github.com/authlib/joserfc";
license = licenses.bsd3;
maintainers = [ ];
};
}