Something went wrong. Try again.
lol
Something went wrong. Try again.
956 B · 48 lines
Nix
at master
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849{ lib, buildPythonPackage, fetchFromGitHub,
# build-system setuptools,
# dependencies cryptography, pycryptodome,
# tests pytestCheckHook,}:
buildPythonPackage rec { pname = "joserfc"; version = "1.6.1"; pyproject = true;
src = fetchFromGitHub { owner = "authlib"; repo = "joserfc"; tag = version; hash = "sha256-druh7ybcQBjTxUFMVLUwknw/aa/fyrUdS4ftS/ftYeA="; };
build-system = [ setuptools ];
dependencies = [ cryptography ];
optional-dependencies = { drafts = [ pycryptodome ]; };
nativeCheckInputs = [ pytestCheckHook ] ++ lib.concatAttrValues optional-dependencies;
pythonImportsCheck = [ "joserfc" ];
meta = { 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 = lib.licenses.bsd3; maintainers = [ ]; };}