mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-11-28 00:40:33 +00:00
Diff: https://github.com/authlib/joserfc/compare/1.7.4...1.7.7 Changelog: https://github.com/authlib/joserfc/blob/1.7.7/docs/changelog.rst
52 lines
1.0 KiB
Nix
52 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
|
|
# build-system
|
|
setuptools,
|
|
|
|
# dependencies
|
|
cryptography,
|
|
pycryptodome,
|
|
|
|
# tests
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "joserfc";
|
|
version = "1.7.7";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "authlib";
|
|
repo = "joserfc";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-birvQGduuehzxZyZsZ1a6l9Y1yMgHKsJqS4MQNAam8E=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [ cryptography ];
|
|
|
|
optional-dependencies = {
|
|
drafts = [ pycryptodome ];
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
]
|
|
++ lib.flatten (builtins.attrValues finalAttrs.passthru.optional-dependencies);
|
|
|
|
pythonImportsCheck = [ "joserfc" ];
|
|
|
|
meta = {
|
|
description = "Implementations of JOSE RFCs in Python";
|
|
homepage = "https://github.com/authlib/joserfc";
|
|
changelog = "https://github.com/authlib/joserfc/blob/${finalAttrs.src.tag}/docs/changelog.rst";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = [ ];
|
|
};
|
|
})
|