17 buildPythonPackage rec {
22 src = fetchFromGitHub {
25 rev = "refs/tags/${version}";
26 hash = "sha256-mnJzhkdX0+5Y/XwGlHgxLP0me8Cs/Cl3p46KgTKw2ug=";
29 build-system = [ setuptools ];
31 dependencies = [ cryptography ];
33 optional-dependencies = {
34 drafts = [ pycryptodome ];
37 nativeCheckInputs = [ pytestCheckHook ] ++ lib.flatten (lib.attrValues optional-dependencies);
39 pythonImportsCheck = [ "joserfc" ];
42 description = "Implementations of JOSE RFCs in Python";
43 homepage = "https://github.com/authlib/joserfc";
44 license = licenses.bsd3;